update app brightness

hmxc
小赖 4 years ago
parent 4529e84229
commit ac2679f4fd

@ -18,6 +18,7 @@ class _ApplicationPageState extends State<ApplicationPage> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return AkuScaffold( return AkuScaffold(
appBar: AppBar( appBar: AppBar(
brightness: Brightness.light,
elevation: 0, elevation: 0,
backgroundColor: Colors.white, backgroundColor: Colors.white,
leading: SizedBox( 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/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,
); );
} }
} }

Loading…
Cancel
Save