This commit is contained in:
open-trade
2020-11-16 20:20:02 +08:00
parent 818a04db16
commit 02719f45f6
2 changed files with 39 additions and 32 deletions

View File

@@ -18,6 +18,7 @@ class _HomePageState extends State<HomePage> {
@override
Widget build(BuildContext context) {
ffi = Provider.of<FfiModel>(context);
idController.text = ffi.getId();
// This method is rerun every time setState is called
return Scaffold(
@@ -43,7 +44,6 @@ class _HomePageState extends State<HomePage> {
}
Widget getSearchBarUI() {
var id = ffi.getId();
return Padding(
padding: const EdgeInsets.only(top: 8.0),
child: Container(
@@ -66,7 +66,6 @@ class _HomePageState extends State<HomePage> {
child: Container(
padding: const EdgeInsets.only(left: 16, right: 16),
child: TextFormField(
initialValue: id,
style: TextStyle(
fontFamily: 'WorkSans',
fontWeight: FontWeight.bold,