From c189ce707c138906bda17d3bb3b7f87645ded18e Mon Sep 17 00:00:00 2001 From: PLyn Date: Mon, 20 May 2024 13:26:58 -0500 Subject: [PATCH] Add stub for MyApp to prevent error in Main --- .../2023-05-04-flutter-multi-factor-authentication.mdx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/www/_blog/2023-05-04-flutter-multi-factor-authentication.mdx b/apps/www/_blog/2023-05-04-flutter-multi-factor-authentication.mdx index 6217b7e979b..dec207d3778 100644 --- a/apps/www/_blog/2023-05-04-flutter-multi-factor-authentication.mdx +++ b/apps/www/_blog/2023-05-04-flutter-multi-factor-authentication.mdx @@ -77,6 +77,15 @@ void main() async { /// Extract SupabaseClient instance in a handy variable final supabase = Supabase.instance.client; + +class MyApp extends StatelessWidget { + const MyApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp(title: 'Supabase Flutter'); + } +} ``` Also, add [go_router](https://pub.dev/packages/go_router) to handle our routing and redirects.