-
Notifications
You must be signed in to change notification settings - Fork 0
/
after_sale_page.dart
executable file
·59 lines (52 loc) · 1.42 KB
/
after_sale_page.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import 'package:flutter/material.dart';
import 'package:worldfunclub/providers.dart';
import 'package:worldfunclub/ui/home/mine/after_sale_list_page.dart';
import 'package:worldfunclub/vm/after_sale_page_provider.dart';
class AfterSalePage extends ProviderWidget<AfterSalePageProvider> {
AfterSalePage() : super();
@override
Widget buildContent(BuildContext context, mProvider) {
return _AfterSalePageContent(mProvider);
}
}
class _AfterSalePageContent extends StatefulWidget {
final AfterSalePageProvider provider;
_AfterSalePageContent(this.provider);
@override
_AfterSalePageContentState createState() => _AfterSalePageContentState();
}
class _AfterSalePageContentState extends State<_AfterSalePageContent> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return DefaultTabController(
initialIndex: 0,
length: 2,
child: Scaffold(
appBar: AppBar(
title: Text("售后记录"),
bottom: TabBar(
indicatorSize: TabBarIndicatorSize.label,
tabs: [
Tab(
text: "退货退款",
),
Tab(
text: "退款",
),
],
),
),
body: TabBarView(
children: [
AfterSaleListPage("10"),
AfterSaleListPage("20"),
],
),
),
);
}
}