Skip to content
This repository was archived by the owner on Aug 31, 2022. It is now read-only.
This repository was archived by the owner on Aug 31, 2022. It is now read-only.

Error: PageCreationException: EMPTY_ROUTE_PROVIDED #5

Description

@marcstoffel

I get this error when saving a new helper.
What did I wrong?

Thanks for help, would be awesome to use your codeless onboarding!

This is how I wrapped my app with the pal widget:

void main() async {
  //Routes.setupRouter();

  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp();
  if (!kIsWeb) await FirebaseRemoteConfig.setupRemoteConfig();

  final _navigatorKey = GlobalKey<NavigatorState>();


  runApp(MultiProvider(
    providers: [
      // StreamProvider<FirebaseAuthentication.User>.value(
      //     value: authenticatedUser),
      ChangeNotifierProvider(create: (context) => CounterService()),
      ChangeNotifierProvider(
        create: (context) => AuthNotifier(),
      ),
      ChangeNotifierProvider(
        create: (context) => TeamNotifier(),
      ),
      ChangeNotifierProvider(
        create: (context) => MatchEngine(),
      ),
    ],
    child: OverlaySupport(
        child: Pal(
          editorModeEnabled: true,
          appToken: 'eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI0Y2FhZjI0NC1jNGZkLTRhZmMtYmYyYS01ZjNjZTMwMzMyODYiLCJ0eXBlIjoiUFJPSkVDVCIsImlhdCI6MTYxMDA4MzMzMH0.QxzaLbqm1w0F1ICR-zVa6O_PTeGKqWL8N3VNE0JlfFE',
          childApp: MaterialApp(
            key: ValueKey('hostedApp'),
            navigatorKey: _navigatorKey, // add this in your app
            navigatorObservers: [PalNavigatorObserver.instance()], // add this in your app
      title: 'Dream-teams.com',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
          primaryColorBrightness: Brightness.light,
          primarySwatch: Colors.pink,
          primaryColor: Colors.pink,
          fontFamily: 'Verdana',
      ),
      initialRoute: '/',
      onGenerateRoute: Routes.generateRoute,
/*      routes: {
          WrapperPage.route: (BuildContext context) => new WrapperPage(),
          MyApp.route: (BuildContext context) => new MyApp(),
      },*/
      //home: WrapperPage(),
    ),
        )),
  ));
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions