添加公共资讯

hmxc
小赖 4 years ago
parent 2461fb1dbb
commit 9aaba0905e

@ -1,3 +1,4 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
@ -15,10 +16,10 @@ class MainInitialize {
static Future initFirebase() async {
await Firebase.initializeApp();
//TODO setCrashlyticsCollectionEnabled state
FirebaseCrashlytics.instance.setCrashlyticsCollectionEnabled(true);
FirebaseCrashlytics.instance.setCrashlyticsCollectionEnabled(kReleaseMode);
FlutterError.onError = (detail) {
LoggerData.addData(detail);
FirebaseCrashlytics.instance.recordFlutterError(detail);
if (kReleaseMode) FirebaseCrashlytics.instance.recordFlutterError(detail);
FlutterError.presentError(detail);
};
}

@ -2,6 +2,7 @@
import 'dart:io';
import 'package:akuCommunity/constants/app_theme.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@ -404,6 +405,7 @@ class _DetoCreatePageState extends State<DetoCreatePage> {
UserProvider userProvider = Provider.of<UserProvider>(context);
AppProvider appProvider = Provider.of<AppProvider>(context);
return BeeScaffold(
systemStyle: SystemStyle.yellowBottomBar,
title: '物品出户',
body: ListView(
padding: EdgeInsets.all(32.w),

@ -65,9 +65,7 @@ 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,
systemStyle: SystemStyle.yellowBottomBar,
title: '物品出户',
actions: [
IconButton(

@ -1,5 +1,6 @@
// Dart imports:
import 'package:akuCommunity/ui/community/public_infomation_page.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@ -109,6 +110,11 @@ class _HomePageState extends State<HomePage>
child: Column(
children: [
HomeNotification(items: _boardItemModels),
HomeTitle(
title: '公共资讯',
suffixTitle: '更多资讯',
onTap: () => Get.to(() => PublicInfomationPage()),
),
HomeTitle(
title: '社区活动',
suffixTitle: '更多活动',

@ -1,3 +1,4 @@
import 'package:akuCommunity/constants/app_theme.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@ -78,6 +79,7 @@ class _ActivityDetailPageState extends State<ActivityDetailPage> {
Widget build(BuildContext context) {
return BeeScaffold(
title: '活动详情',
systemStyle: SystemStyle.yellowBottomBar,
body: EasyRefresh(
header: MaterialHeader(),
onRefresh: () async {

@ -0,0 +1,29 @@
import 'package:akuCommunity/widget/bee_scaffold.dart';
import 'package:akuCommunity/widget/tab_bar/bee_tab_bar.dart';
import 'package:flutter/material.dart';
class PublicInfomationPage extends StatefulWidget {
PublicInfomationPage({Key key}) : super(key: key);
@override
_PublicInfomationPageState createState() => _PublicInfomationPageState();
}
class _PublicInfomationPageState extends State<PublicInfomationPage>
with TickerProviderStateMixin {
static const pubTabs = <String>['全部', '政务', '生活', '医疗', '教育'];
TabController _tabController;
@override
void initState() {
super.initState();
_tabController = TabController(length: pubTabs.length, vsync: this);
}
@override
Widget build(BuildContext context) {
return BeeScaffold(
title: '公共资讯',
appBarBottom: BeeTabBar(controller: _tabController, tabs: pubTabs),
);
}
}
Loading…
Cancel
Save