parent
88f2271215
commit
920f2724a0
@ -0,0 +1,16 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class ElectronicCommercCard extends StatefulWidget {
|
||||||
|
final int index;
|
||||||
|
ElectronicCommercCard({Key? key, required this.index}) : super(key: key);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_ElectronicCommercCardState createState() => _ElectronicCommercCardState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _ElectronicCommercCardState extends State<ElectronicCommercCard> {
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Container();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,62 @@
|
|||||||
|
import 'package:aku_community/pages/electronic_commerc/electronic_commerc_view.dart';
|
||||||
|
import 'package:aku_community/widget/bee_scaffold.dart';
|
||||||
|
import 'package:aku_community/widget/tab_bar/bee_tab_bar.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class ElectronicCommercPage extends StatefulWidget {
|
||||||
|
ElectronicCommercPage({Key? key}) : super(key: key);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_ElectronicCommercPageState createState() => _ElectronicCommercPageState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _ElectronicCommercPageState extends State<ElectronicCommercPage>
|
||||||
|
with TickerProviderStateMixin {
|
||||||
|
List<String> _tabs = [
|
||||||
|
'小区教育',
|
||||||
|
'健康运动',
|
||||||
|
'家政服务',
|
||||||
|
'居家养老',
|
||||||
|
'装修服务',
|
||||||
|
'物业租售',
|
||||||
|
'网上商城',
|
||||||
|
'代购代送',
|
||||||
|
'网上询价',
|
||||||
|
'网上采购',
|
||||||
|
'商品退换',
|
||||||
|
'质量投诉'
|
||||||
|
];
|
||||||
|
late TabController _tabController;
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
super.initState();
|
||||||
|
_tabController = TabController(length: _tabs.length, vsync: this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void dispose() {
|
||||||
|
_tabController.dispose();
|
||||||
|
super.dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return BeeScaffold(
|
||||||
|
title: '电子商务',
|
||||||
|
appBarBottom: BeeTabBar(
|
||||||
|
controller: _tabController,
|
||||||
|
tabs: _tabs,
|
||||||
|
scrollable: true,
|
||||||
|
),
|
||||||
|
body: TabBarView(
|
||||||
|
controller: _tabController,
|
||||||
|
children: List.generate(
|
||||||
|
_tabs.length,
|
||||||
|
(index) => ElectronicCommercView(
|
||||||
|
index: index,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
import 'package:aku_community/pages/electronic_commerc/electronic_commerc_card.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||||
|
|
||||||
|
class ElectronicCommercView extends StatefulWidget {
|
||||||
|
final int index;
|
||||||
|
ElectronicCommercView({Key? key, required this.index}) : super(key: key);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_ElectronicCommercViewState createState() => _ElectronicCommercViewState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _ElectronicCommercViewState extends State<ElectronicCommercView> {
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return ListView(
|
||||||
|
padding: EdgeInsets.symmetric(vertical: 24.w,horizontal: 32.w),
|
||||||
|
children: [
|
||||||
|
ElectronicCommercCard(index: widget.index),
|
||||||
|
],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class RenovationManageCard extends StatefulWidget {
|
||||||
|
RenovationManageCard({Key? key}) : super(key: key);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_RenovationManageCardState createState() => _RenovationManageCardState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _RenovationManageCardState extends State<RenovationManageCard> {
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Container();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,40 @@
|
|||||||
|
import 'package:aku_community/pages/renovation_manage/renovation_manage_view.dart';
|
||||||
|
import 'package:aku_community/widget/bee_scaffold.dart';
|
||||||
|
import 'package:aku_community/widget/tab_bar/bee_tab_bar.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class RenovationManagePage extends StatefulWidget {
|
||||||
|
RenovationManagePage({Key? key}) : super(key: key);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_RenovationManagePageState createState() => _RenovationManagePageState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _RenovationManagePageState extends State<RenovationManagePage> with TickerProviderStateMixin {
|
||||||
|
List<String> _tabs = [
|
||||||
|
'待处理',
|
||||||
|
'处理中',
|
||||||
|
'已完成',
|
||||||
|
'全部'
|
||||||
|
];
|
||||||
|
late TabController _tabController;
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
super.initState();
|
||||||
|
_tabController = TabController(length: _tabs.length, vsync: this);
|
||||||
|
}
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return BeeScaffold(
|
||||||
|
title: '电子商务',
|
||||||
|
appBarBottom: BeeTabBar(controller: _tabController, tabs: _tabs,scrollable: true,),
|
||||||
|
body: TabBarView(
|
||||||
|
controller: _tabController,
|
||||||
|
children: List.generate(
|
||||||
|
_tabs.length,
|
||||||
|
(index) => RenovationManageView(index: index,),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class RenovationManageView extends StatefulWidget {
|
||||||
|
final int index;
|
||||||
|
RenovationManageView({Key? key, required this.index}) : super(key: key);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_RenovationManageViewState createState() => _RenovationManageViewState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _RenovationManageViewState extends State<RenovationManageView> {
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return ListView();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue