|
|
@ -9,6 +9,7 @@ import 'package:aku_community_manager/ui/tool_pages/scan_page.dart';
|
|
|
|
import 'package:aku_ui/aku_ui.dart';
|
|
|
|
import 'package:aku_ui/aku_ui.dart';
|
|
|
|
import 'package:aku_ui/common_widgets/aku_material_button.dart';
|
|
|
|
import 'package:aku_ui/common_widgets/aku_material_button.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
@ -20,6 +21,7 @@ class HomePage extends StatefulWidget {
|
|
|
|
_HomePageState createState() => _HomePageState();
|
|
|
|
_HomePageState createState() => _HomePageState();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class _HomePageState extends State<HomePage> {
|
|
|
|
//自定义bar的菜单按钮
|
|
|
|
//自定义bar的菜单按钮
|
|
|
|
Widget _menuButton(IconData iconData, String text, Widget page) {
|
|
|
|
Widget _menuButton(IconData iconData, String text, Widget page) {
|
|
|
|
return Expanded(
|
|
|
|
return Expanded(
|
|
|
@ -88,13 +90,21 @@ Widget _card(String number, String text, Color color) {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class _HomePageState extends State<HomePage> {
|
|
|
|
@override
|
|
|
|
|
|
|
|
void initState() {
|
|
|
|
|
|
|
|
super.initState();
|
|
|
|
|
|
|
|
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
|
|
|
|
|
|
|
|
statusBarColor: Colors.transparent,
|
|
|
|
|
|
|
|
));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
final userProvider = Provider.of<UserProvider>(context);
|
|
|
|
final userProvider = Provider.of<UserProvider>(context);
|
|
|
|
ScreenUtil.init(context,
|
|
|
|
ScreenUtil.init(context,
|
|
|
|
designSize: Size(750, 1334), allowFontScaling: true);
|
|
|
|
designSize: Size(750, 1334), allowFontScaling: true);
|
|
|
|
return Scaffold(
|
|
|
|
return AnnotatedRegion<SystemUiOverlayStyle>(
|
|
|
|
|
|
|
|
child: Scaffold(
|
|
|
|
drawer: PersonalDraw(),
|
|
|
|
drawer: PersonalDraw(),
|
|
|
|
backgroundColor: Color(0xFFF9F9F9),
|
|
|
|
backgroundColor: Color(0xFFF9F9F9),
|
|
|
|
//自定义bar
|
|
|
|
//自定义bar
|
|
|
@ -112,7 +122,8 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
Color(0xFFFFC40C),
|
|
|
|
Color(0xFFFFC40C),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
borderRadius: BorderRadius.only(bottomRight: Radius.circular(32.w)),
|
|
|
|
borderRadius:
|
|
|
|
|
|
|
|
BorderRadius.only(bottomRight: Radius.circular(32.w)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
@ -404,6 +415,8 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
value: SystemUiOverlayStyle.dark,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|