Skip to content

Commit f9d971f

Browse files
committed
Update
1 parent 4b2705b commit f9d971f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/pages/connections/add.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ class _AddPageState extends State<AddPage> {
2424
late TextEditingController _passwordController;
2525
late TextEditingController _databaseController;
2626
late TextEditingController _aliasController;
27-
late ScrollController _scrollController;
2827
bool _saveEnabled = true;
2928
bool _testEnabled = true;
3029
GlobalKey<FormState> _formKey = GlobalKey();
@@ -61,7 +60,7 @@ class _AddPageState extends State<AddPage> {
6160
),
6261
backgroundColor: Colors.grey[200],
6362
child: SafeArea(
64-
child: ListView(controller: _scrollController, children: [
63+
child: ListView(children: [
6564
Form(
6665
key: _formKey,
6766
autovalidateMode: AutovalidateMode.always,
@@ -138,12 +137,12 @@ class _AddPageState extends State<AddPage> {
138137
return;
139138
}
140139
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');
142141
var nowTime = await results.first['t'];
143-
showToast(context, 'Server: $nowTime');
142+
showToast(context, 'Ping: $nowTime');
144143
_testEnabled = true;
145144
}).onError((error, stackTrace) {
146-
showToast(context, 'Error: fail');
145+
showToast(context, 'Ping: fail');
147146
_testEnabled = true;
148147
});
149148
}

0 commit comments

Comments
 (0)