报事报修tab小尺寸手机显示不完整

pull/1/head
戴余标 2 years ago
parent 9496071917
commit cbc3ca2348

@ -110,7 +110,9 @@ class _HomePageState extends State<HomePage>
right: 32.w, right: 32.w,
left: 32.w, left: 32.w,
bottom: 20.w), bottom: 20.w),
child: Row(crossAxisAlignment: CrossAxisAlignment.center, children: [ child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
// if (appProvider.location != null) // if (appProvider.location != null)
Image.asset( Image.asset(
Assets.home.icLocation.path, Assets.home.icLocation.path,
@ -168,8 +170,10 @@ class _HomePageState extends State<HomePage>
}, },
child: Image.asset(Assets.home.icMessage.path, child: Image.asset(Assets.home.icMessage.path,
height: 48.w, width: 48.w), height: 48.w, width: 48.w),
)), ),
]), ),
],
),
); );
return AnnotatedRegion<SystemUiOverlayStyle>( return AnnotatedRegion<SystemUiOverlayStyle>(
value: SystemUiOverlayStyle.dark, value: SystemUiOverlayStyle.dark,
@ -359,7 +363,8 @@ class _HomePageState extends State<HomePage>
), ),
), ),
onTap: () async { onTap: () async {
Get.to(AdvicePage(type: AdviceType.SUGGESTION)); Get.to(AdvicePage(
type: AdviceType.SUGGESTION));
}, },
), ),
) )

@ -62,6 +62,7 @@ class _WorkOrderPageState extends State<WorkOrderPage>
appBarBottom: BeeTabBar( appBarBottom: BeeTabBar(
tabs: _tabs, tabs: _tabs,
controller: _tabController, controller: _tabController,
scrollable: true,
), ),
body: TabBarView( body: TabBarView(
controller: _tabController, controller: _tabController,

@ -1,6 +1,7 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
class BeeTabBar extends StatefulWidget with PreferredSizeWidget { class BeeTabBar extends StatefulWidget with PreferredSizeWidget {
final TabController? controller; final TabController? controller;

Loading…
Cancel
Save