variance_dart 0.1.9 variance_dart: ^0.1.9 copied to clipboard
An Account Abstraction (4337) Development kit, for quickly building mobile web3 apps and smart wallets.
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:provider/provider.dart';
import 'package:variancedemo/providers/wallet_provider.dart';
import 'package:variancedemo/screens/create_account.dart';
import 'package:variancedemo/screens/home/home_screen.dart';
final globalScaffoldMessengerKey = GlobalKey<ScaffoldMessengerState>();
void main() {
WidgetsFlutterBinding.ensureInitialized();
runApp(MultiProvider(providers: [
ChangeNotifierProvider(create: (_) => WalletProvider()),
], child: const MyApp()));
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return ScreenUtilInit(
designSize: const Size(375, 812),
child: MaterialApp(
title: 'Variance Dart',
routes: {
'/': (context) => const CreateAccountScreen(),
'/home': (context) => const WalletHome(),
},
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: const Color(0xffE1FF01)),
textTheme: GoogleFonts.poppinsTextTheme(),
),
debugShowCheckedModeBanner: false,
),
);
}
}