Skip to content

Instantly share code, notes, and snippets.

@alperefesahin
Created January 8, 2023 13:25
Show Gist options
  • Save alperefesahin/278435a4ff47bab501f636ebf97ecb02 to your computer and use it in GitHub Desktop.
Save alperefesahin/278435a4ff47bab501f636ebf97ecb02 to your computer and use it in GitHub Desktop.
MaterialApp.router(
debugShowCheckedModeBanner: false,
routerConfig: appRouter.router,
localizationsDelegates: const [...],
supportedLocales: const [...],
builder: (context, child) {
final client = getIt<StreamChatClient>();
child = StreamChat(
client: client,
child: child,
);
child = botToastBuilder(context, child);
return child;
},
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment