|
|
@ -28,6 +28,7 @@ import 'package:aku_new_community/widget/others/user_tool.dart';
|
|
|
|
import 'package:bot_toast/bot_toast.dart';
|
|
|
|
import 'package:bot_toast/bot_toast.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
import 'package:flutter_easyrefresh/easy_refresh.dart';
|
|
|
|
import 'package:flutter_easyrefresh/easy_refresh.dart';
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
@ -84,8 +85,16 @@ class _CommunityPageState extends State<CommunityPage>
|
|
|
|
super.build(context);
|
|
|
|
super.build(context);
|
|
|
|
final userProvider = Provider.of<UserProvider>(context);
|
|
|
|
final userProvider = Provider.of<UserProvider>(context);
|
|
|
|
final appProvider = Provider.of<AppProvider>(context);
|
|
|
|
final appProvider = Provider.of<AppProvider>(context);
|
|
|
|
return Scaffold(
|
|
|
|
return AnnotatedRegion<SystemUiOverlayStyle>(
|
|
|
|
appBar: AppBar(
|
|
|
|
value: SystemUiOverlayStyle.dark,
|
|
|
|
|
|
|
|
child: Scaffold(
|
|
|
|
|
|
|
|
appBar: PreferredSize(
|
|
|
|
|
|
|
|
preferredSize: Size.fromHeight(88.w),
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
gradient:
|
|
|
|
|
|
|
|
LinearGradient(colors: [Colors.white, Color(0xFFFFF9D1)])),
|
|
|
|
|
|
|
|
child: AppBar(
|
|
|
|
titleSpacing: 0,
|
|
|
|
titleSpacing: 0,
|
|
|
|
title: Align(
|
|
|
|
title: Align(
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
@ -106,15 +115,15 @@ class _CommunityPageState extends State<CommunityPage>
|
|
|
|
indicatorPadding: EdgeInsets.only(bottom: 15.w),
|
|
|
|
indicatorPadding: EdgeInsets.only(bottom: 15.w),
|
|
|
|
indicator: const BoxDecoration(),
|
|
|
|
indicator: const BoxDecoration(),
|
|
|
|
tabs: _tabs.map((e) => Tab(text: e)).toList(),
|
|
|
|
tabs: _tabs.map((e) => Tab(text: e)).toList(),
|
|
|
|
labelStyle:
|
|
|
|
labelStyle: TextStyle(
|
|
|
|
TextStyle(fontSize: 36.sp, fontWeight: FontWeight.bold),
|
|
|
|
fontSize: 36.sp, fontWeight: FontWeight.bold),
|
|
|
|
labelColor: Color(0xD9000000),
|
|
|
|
labelColor: Color(0xD9000000),
|
|
|
|
unselectedLabelStyle: TextStyle(fontSize: 32.sp),
|
|
|
|
unselectedLabelStyle: TextStyle(fontSize: 32.sp),
|
|
|
|
unselectedLabelColor: Color(0x73000000),
|
|
|
|
unselectedLabelColor: Color(0x73000000),
|
|
|
|
isScrollable: true,
|
|
|
|
isScrollable: true,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
actions: [
|
|
|
|
actions: [
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(right: 32.w),
|
|
|
|
padding: EdgeInsets.only(right: 32.w),
|
|
|
@ -140,6 +149,8 @@ class _CommunityPageState extends State<CommunityPage>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
body: TabBarView(
|
|
|
|
body: TabBarView(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
EasyRefresh(
|
|
|
|
EasyRefresh(
|
|
|
@ -185,6 +196,7 @@ class _CommunityPageState extends State<CommunityPage>
|
|
|
|
],
|
|
|
|
],
|
|
|
|
controller: _tabController,
|
|
|
|
controller: _tabController,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|