@@ -24,7 +24,6 @@ class _AddPageState extends State<AddPage> {
24
24
late TextEditingController _passwordController;
25
25
late TextEditingController _databaseController;
26
26
late TextEditingController _aliasController;
27
- late ScrollController _scrollController;
28
27
bool _saveEnabled = true ;
29
28
bool _testEnabled = true ;
30
29
GlobalKey <FormState > _formKey = GlobalKey ();
@@ -61,7 +60,7 @@ class _AddPageState extends State<AddPage> {
61
60
),
62
61
backgroundColor: Colors .grey[200 ],
63
62
child: SafeArea (
64
- child: ListView (controller : _scrollController, children: [
63
+ child: ListView (children: [
65
64
Form (
66
65
key: _formKey,
67
66
autovalidateMode: AutovalidateMode .always,
@@ -138,12 +137,12 @@ class _AddPageState extends State<AddPage> {
138
137
return ;
139
138
}
140
139
createConnection ().connect ().then ((conn) async {
141
- var results = await conn.query ('select "PING OK " as t' );
140
+ var results = await conn.query ('select "success " as t' );
142
141
var nowTime = await results.first['t' ];
143
- showToast (context, 'Server : $nowTime ' );
142
+ showToast (context, 'Ping : $nowTime ' );
144
143
_testEnabled = true ;
145
144
}).onError ((error, stackTrace) {
146
- showToast (context, 'Error : fail' );
145
+ showToast (context, 'Ping : fail' );
147
146
_testEnabled = true ;
148
147
});
149
148
}
0 commit comments