|
@@ -17,24 +17,28 @@ class HomePage extends GetView<HomeController> {
|
|
|
right: false,
|
|
|
left: false,
|
|
|
// maintainBottomViewPadding: true,
|
|
|
- child: Scaffold(
|
|
|
- // resizeToAvoidBottomInset: false,
|
|
|
- backgroundColor: const Color.fromRGBO(238, 238, 238, 1),
|
|
|
- body: Column(
|
|
|
- mainAxisSize: MainAxisSize.max,
|
|
|
- children: [
|
|
|
- SizedBox(
|
|
|
- height: 90,
|
|
|
- child: _buildHeader(),
|
|
|
- ),
|
|
|
- const SizedBox(height: 2),
|
|
|
- // Expanded(child: _buildBody(context)),
|
|
|
- SizedBox(
|
|
|
- height: MediaQuery.of(context).size.height - 90 - 2,
|
|
|
- child: _buildBody(context),
|
|
|
+ child: LayoutBuilder(
|
|
|
+ builder: (context, c) {
|
|
|
+ return Scaffold(
|
|
|
+ // resizeToAvoidBottomInset: false,
|
|
|
+ backgroundColor: const Color.fromRGBO(238, 238, 238, 1),
|
|
|
+ body: Column(
|
|
|
+ mainAxisSize: MainAxisSize.max,
|
|
|
+ children: [
|
|
|
+ SizedBox(
|
|
|
+ height: 90,
|
|
|
+ child: _buildHeader(),
|
|
|
+ ),
|
|
|
+ const SizedBox(height: 2),
|
|
|
+ // Expanded(child: _buildBody(context)),
|
|
|
+ SizedBox(
|
|
|
+ height: c.maxHeight - 90 - 2,
|
|
|
+ child: _buildBody(context),
|
|
|
+ ),
|
|
|
+ ],
|
|
|
),
|
|
|
- ],
|
|
|
- ),
|
|
|
+ );
|
|
|
+ },
|
|
|
),
|
|
|
);
|
|
|
}
|