Prototype_Learn/lib/main.dart

28 lines
830 B
Dart

import 'package:flutter/material.dart';
import 'package:learn_project/screens/home.dart';
import 'package:supabase_flutter/supabase_flutter.dart';
void main() => runApp(const MyApp());
/// Supabase client
final supabase = Supabase.instance.client;
/// Error message to display the user when unexpected error occurs.
const unexpectedErrorMessage = 'Unexpected error occurred.';
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
//title: 'Recipes',
theme: ThemeData(
colorScheme: ColorScheme.fromSwatch().copyWith(
primary: Colors.white,
secondary: const Color(0xff8DB646), // Your accent color
),
),
home: const HomePage(),
);
}
}