Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not work in GetMaterialApp? #35

Open
taosimple opened this issue Jun 26, 2023 · 0 comments
Open

Not work in GetMaterialApp? #35

taosimple opened this issue Jun 26, 2023 · 0 comments

Comments

@taosimple
Copy link

Init in GetMaterialApp

GetMaterialApp(
      debugShowCheckedModeBanner: false,
      onInit: () async {
        ToastContext().init(context);
      },
      home: HomePage(),
      routes: {
          PAGE_BACKUP: (context) => BackupPage(),
      },
      navigatorObservers: [firebase],
    );

show:
Toast.show('subtype_name_repeated', gravity: Toast.top);

error:

I/flutter ( 9542): #0      Overlay.of.<anonymous closure> (package:flutter/src/widgets/overlay.dart:476:9)
I/flutter ( 9542): #1      Overlay.of (package:flutter/src/widgets/overlay.dart:479:6)
I/flutter ( 9542): #2      ToastView.createView (package:toast/toast.dart:97:28)
I/flutter ( 9542): #3      Toast.show (package:toast/toast.dart:68:17)
I/flutter ( 9542): #4      CreatePatternSheet._checkIntegrity (package:easy_table/pages/sheet/create_pattern_sheet.dart:86:15)
I/flutter ( 9542): #5      CreatePatternSheet.onActionClick (package:easy_table/pages/sheet/create_pattern_sheet.dart:65:15)
I/flutter ( 9542): #6      ShellController.onInit.<anonymous closure> (package:easy_table/widget/bottom_sheet/bottom_sheet_shell.dart:201:34)
I/flutter ( 9542): #7      EventBus.emit (package:easy_table/event/event_bus.dart:37:14)
I/flutter ( 9542): #8      _BottomSheetShellState.buildTitleBar.<anonymous closure> (package:easy_table/widget/bottom_sheet/bottom_sheet_shell.dart:172:41)
I/flutter ( 9542): #9      _InkResponseState.handleTap (package:flutter/src/material/ink_well.dart:1154:21)
I/flutter ( 9542): #10     GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:275:24)
I/flutter ( 9542): #11     TapGestureRecogni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant