|
|
@ -1,12 +1,11 @@
|
|
|
|
|
|
|
|
import 'package:akuCommunity/base/base_style.dart';
|
|
|
|
import 'package:akuCommunity/pages/community/note_create_page.dart';
|
|
|
|
import 'package:akuCommunity/pages/community/note_create_page.dart';
|
|
|
|
|
|
|
|
import 'package:akuCommunity/widget/bee_scaffold.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter_icons/flutter_icons.dart';
|
|
|
|
|
|
|
|
import 'package:akuCommunity/utils/headers.dart';
|
|
|
|
import 'package:akuCommunity/utils/headers.dart';
|
|
|
|
import 'package:akuCommunity/widget/app_bar_action.dart';
|
|
|
|
|
|
|
|
import 'package:akuCommunity/routers/page_routers.dart';
|
|
|
|
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
|
|
|
|
import 'widget/tab_list.dart';
|
|
|
|
import 'widget/tab_list.dart';
|
|
|
|
|
|
|
|
import 'package:velocity_x/velocity_x.dart';
|
|
|
|
|
|
|
|
|
|
|
|
class CommunityIndex extends StatefulWidget {
|
|
|
|
class CommunityIndex extends StatefulWidget {
|
|
|
|
CommunityIndex({Key key}) : super(key: key);
|
|
|
|
CommunityIndex({Key key}) : super(key: key);
|
|
|
@ -28,10 +27,6 @@ class _CommunityIndexState extends State<CommunityIndex>
|
|
|
|
{'name': '我的', 'id': 'new'},
|
|
|
|
{'name': '我的', 'id': 'new'},
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
List<Map<String, dynamic>> actionsList = [
|
|
|
|
|
|
|
|
{'title': '消息', 'icon': AntDesign.bells, 'funtion': null}
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
void initState() {
|
|
|
|
super.initState();
|
|
|
|
super.initState();
|
|
|
@ -44,12 +39,21 @@ class _CommunityIndexState extends State<CommunityIndex>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
List<Widget> _listActions() {
|
|
|
|
List<Widget> _listActions() {
|
|
|
|
return actionsList
|
|
|
|
return [
|
|
|
|
.map((item) => AppBarAction(
|
|
|
|
FlatButton(
|
|
|
|
title: item['title'],
|
|
|
|
minWidth: 48.w + 27.w * 2,
|
|
|
|
icon: item['icon'],
|
|
|
|
onPressed: () {},
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Icon(
|
|
|
|
|
|
|
|
CupertinoIcons.bell,
|
|
|
|
|
|
|
|
size: 48.w,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
'消息'.text.black.size(20.sp).make(),
|
|
|
|
|
|
|
|
],
|
|
|
|
))
|
|
|
|
))
|
|
|
|
.toList();
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
AppBar _appBar() {
|
|
|
|
AppBar _appBar() {
|
|
|
|