update app brightness

hmxc
小赖 4 years ago
parent 4529e84229
commit ac2679f4fd

@ -18,6 +18,7 @@ class _ApplicationPageState extends State<ApplicationPage> {
Widget build(BuildContext context) {
return AkuScaffold(
appBar: AppBar(
brightness: Brightness.light,
elevation: 0,
backgroundColor: Colors.white,
leading: SizedBox(
@ -52,6 +53,9 @@ class _ApplicationPageState extends State<ApplicationPage> {
),
),
),
body: Column(
children: [],
),
);
}
}

@ -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/common_widgets/aku_material_button.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:provider/provider.dart';
@ -20,6 +21,7 @@ class HomePage extends StatefulWidget {
_HomePageState createState() => _HomePageState();
}
class _HomePageState extends State<HomePage> {
//bar
Widget _menuButton(IconData iconData, String text, Widget page) {
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
Widget build(BuildContext context) {
final userProvider = Provider.of<UserProvider>(context);
ScreenUtil.init(context,
designSize: Size(750, 1334), allowFontScaling: true);
return Scaffold(
return AnnotatedRegion<SystemUiOverlayStyle>(
child: Scaffold(
drawer: PersonalDraw(),
backgroundColor: Color(0xFFF9F9F9),
//bar
@ -112,7 +122,8 @@ class _HomePageState extends State<HomePage> {
Color(0xFFFFC40C),
],
),
borderRadius: BorderRadius.only(bottomRight: Radius.circular(32.w)),
borderRadius:
BorderRadius.only(bottomRight: Radius.circular(32.w)),
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
@ -404,6 +415,8 @@ class _HomePageState extends State<HomePage> {
),
],
),
),
value: SystemUiOverlayStyle.dark,
);
}
}

Loading…
Cancel
Save