update bottom navigation bar style

hmxc
小赖 4 years ago
parent 2fb3494745
commit 7e833f80b7

@ -120,4 +120,11 @@ class SystemStyle {
statusBarIconBrightness: Brightness.light,
systemNavigationBarColor: Color(0xFFFFD000),
);
static genStyle({@required Color bottom}) {
return SystemUiOverlayStyle(
statusBarIconBrightness: Brightness.light,
systemNavigationBarColor: bottom,
);
}
}

@ -1,3 +1,4 @@
import 'package:akuCommunity/constants/app_theme.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@ -203,6 +204,7 @@ class _VotingDetailPageState extends State<VotingDetailPage> {
@override
Widget build(BuildContext context) {
return BeeScaffold(
systemStyle: SystemStyle.yellowBottomBar,
title: '活动详情',
bodyColor: Colors.white,
body: EasyRefresh(

@ -1,3 +1,4 @@
import 'package:akuCommunity/constants/app_theme.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@ -64,6 +65,9 @@ class _GoodsDetoPageState extends State<GoodsDetoPage> {
Widget build(BuildContext context) {
UserProvider userProvider = Provider.of<UserProvider>(context);
return BeeScaffold(
systemStyle: _isEdit
? SystemStyle.genStyle(bottom: Color(0xFFFFD000).withOpacity(0.2))
: SystemStyle.yellowBottomBar,
title: '物品出户',
actions: [
IconButton(

@ -1,3 +1,4 @@
import 'package:akuCommunity/constants/app_theme.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@ -133,6 +134,7 @@ class _IndustryCommitteePageState extends State<IndustryCommitteePage> {
Widget build(BuildContext context) {
return BeeScaffold(
title: '业委会',
systemStyle: SystemStyle.genStyle(bottom: Color(0xFF2A2A2A)),
body: BeeListView(
path: API.manager.commiteeStaff,
convert: (model) {

@ -1,5 +1,6 @@
import 'dart:io';
import 'package:akuCommunity/constants/app_theme.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@ -175,6 +176,7 @@ class _AddFixedSubmitPageState extends State<AddFixedSubmitPage> {
AppProvider appProvider = Provider.of<AppProvider>(context);
return WillPopScope(
child: BeeScaffold(
systemStyle: SystemStyle.yellowBottomBar,
title: '报事报修',
body: ListView(
children: [

@ -1,3 +1,4 @@
import 'package:akuCommunity/constants/app_theme.dart';
import 'package:flutter/material.dart';
import 'package:dio/dio.dart';
@ -161,6 +162,7 @@ class _AdviceDetailPageState extends State<AdviceDetailPage> {
Widget build(BuildContext context) {
return BeeScaffold(
title: '查看详情',
systemStyle: SystemStyle.yellowBottomBar,
actions: [
TextButton(
onPressed: () =>

@ -1,3 +1,4 @@
import 'package:akuCommunity/constants/app_theme.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@ -90,6 +91,7 @@ class _AdvicePageState extends State<AdvicePage> with TickerProviderStateMixin {
Widget build(BuildContext context) {
return BeeScaffold(
title: title,
systemStyle: SystemStyle.yellowBottomBar,
actions: [
TextButton(
onPressed: () => setState(() => _selectedMode = !_selectedMode),

@ -1,5 +1,6 @@
import 'dart:io';
import 'package:akuCommunity/constants/app_theme.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@ -131,6 +132,7 @@ class _NewAdvicePageState extends State<NewAdvicePage> {
Widget build(BuildContext context) {
final appProvider = Provider.of<AppProvider>(context);
return BeeScaffold.white(
systemStyle: SystemStyle.yellowBottomBar,
title: title,
body: ListView(
padding: EdgeInsets.all(32.w),

@ -1,3 +1,4 @@
import 'package:akuCommunity/constants/app_theme.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@ -195,6 +196,7 @@ class _QuestionnaireDetailPageState extends State<QuestionnaireDetailPage> {
Widget build(BuildContext context) {
return BeeScaffold(
title: '问卷调查',
systemStyle: SystemStyle.yellowBottomBar,
body: EasyRefresh(
firstRefresh: true,
header: MaterialHeader(),

@ -1,6 +1,7 @@
import 'dart:typed_data';
import 'dart:ui' as ui;
import 'package:akuCommunity/constants/app_theme.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/services.dart';
@ -30,7 +31,8 @@ class _VisitorPassportPageState extends State<VisitorPassportPage> {
GlobalKey _repaintKey = GlobalKey();
@override
Widget build(BuildContext context) {
return Scaffold(
return AnnotatedRegion<SystemUiOverlayStyle>(
child: Scaffold(
backgroundColor: Color(0xFF333333),
appBar: AppBar(
brightness: Brightness.dark,
@ -147,6 +149,8 @@ class _VisitorPassportPageState extends State<VisitorPassportPage> {
},
child: '发送给访客'.text.bold.make(),
),
),
value: SystemStyle.yellowBottomBar,
);
}
}

@ -1,3 +1,4 @@
import 'package:akuCommunity/constants/app_theme.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@ -70,6 +71,7 @@ class _PickMyHousePageState extends State<PickMyHousePage> {
final appProvider = Provider.of<AppProvider>(context);
return BeeScaffold(
title: '我的房屋',
systemStyle: SystemStyle.yellowBottomBar,
body: EasyRefresh(
header: MaterialHeader(),
controller: _refreshController,

Loading…
Cancel
Save