flutter_desktop: fix ffi model provider

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2022-08-06 18:48:07 +08:00
parent b0b6db6160
commit 511f3c022f
2 changed files with 98 additions and 94 deletions

View File

@@ -58,6 +58,8 @@ class _ConnectionPageState extends State<ConnectionPage> {
@override
Widget build(BuildContext context) {
Provider.of<FfiModel>(context);
if (_idController.text.isEmpty) _idController.text = gFFI.getId();
return Container(
decoration: BoxDecoration(color: isDarkTheme() ? null : MyTheme.grayBg),