poem_complete_page.dart
2.89 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import 'package:flutter/material.dart';
import 'package:Parlando/res/resources.dart';
import 'package:Parlando/routers/fluro_navigator.dart';
import 'package:Parlando/routers/routers.dart';
import 'package:Parlando/widgets/my_app_bar.dart';
import 'package:Parlando/extension/int_extension.dart';
class PoemCompletePage extends StatefulWidget {
const PoemCompletePage({Key? key, required this.data}) : super(key: key);
final String data;
@override
_PoemCompletePageState createState() => _PoemCompletePageState();
}
class _PoemCompletePageState extends State<PoemCompletePage> {
@override
void initState() {
super.initState();
}
@override
void dispose() {
super.dispose();
}
@override
Widget build(BuildContext context) {
return WillPopScope(
onWillPop: _isExit,
child: Scaffold(
appBar: const MyAppBar(
isBack: false,
isTransparent: true,
),
body: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Gaps.vGap24,
Container(
width: 120,
height: 120,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8),
image: const DecorationImage(
image: AssetImage('assets/images/logo.png'),
),
),
),
const Spacer(),
Expanded(
child: Center(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"发布临境,让更多人身临其境",
style: TextStyle(fontSize: 14.px),
),
Gaps.vGap10,
TextButton(
style: ButtonStyle(
side: MaterialStateProperty.all(
BorderSide(
color: Colors.black54,
width: 1.px,
),
),
),
onPressed: () {
NavigatorUtils.push(
context,
Routes.navBarPage,
clearStack: true,
);
},
child: Text(
"完成",
style:
TextStyle(color: Colors.black54, fontSize: 15.px),
),
),
],
),
),
),
],
),
),
);
}
Future<bool> _isExit() async {
NavigatorUtils.push(context, Routes.navBarPage, clearStack: true);
return Future.value(false);
}
}