change ffi flutter_config to flutter_option

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow
2023-08-10 22:27:35 +08:00
parent 7921be45f5
commit 7f6b18fc9c
10 changed files with 42 additions and 42 deletions

View File

@@ -51,7 +51,7 @@ class PeerTabModel with ChangeNotifier {
PeerTabModel(this.parent) {
// init currentTab
_currentTab =
int.tryParse(bind.getLocalFlutterConfig(k: 'peer-tab-index')) ?? 0;
int.tryParse(bind.getLocalFlutterOption(k: 'peer-tab-index')) ?? 0;
if (_currentTab < 0 || _currentTab >= tabNames.length) {
_currentTab = 0;
}