blob: 99db1c8a91ac8573248f10bc0174fa4eec8523a3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
import 'package:flutter/material.dart';
import 'package:device_apps/device_apps.dart';
import '../components/AppList.dart';
class FixedContainer extends StatelessWidget {
EdgeInsets padding;
Widget child;
FixedContainer({ this.padding, this.child }): super();
@override
Widget build(BuildContext ctx) {
return LayoutBuilder(
builder: (BuildContext context, BoxConstraints viewportConstraints) {
return SingleChildScrollView(
child: ConstrainedBox(
constraints: BoxConstraints(
minHeight: viewportConstraints.maxHeight,
),
child: IntrinsicHeight(
child: Container(
padding: padding,
height: viewportConstraints.maxHeight,
child: child,
)
),
),
);
}
);
}
}
|