fix on login and config

This commit is contained in:
open-trade
2020-11-18 12:49:43 +08:00
parent 52139dc84b
commit 0ba74ef7ec
2 changed files with 43 additions and 16 deletions

View File

@@ -15,15 +15,10 @@ class HomePage extends StatefulWidget {
class _HomePageState extends State<HomePage> {
final _idController = TextEditingController();
@override
void initState() {
super.initState();
_idController.text = FFI.getId();
}
@override
Widget build(BuildContext context) {
Provider.of<FfiModel>(context);
if (_idController.text.isEmpty) _idController.text = FFI.getId();
// This method is rerun every time setState is called
return Scaffold(
appBar: AppBar(