mca_official_flutter_sdk 0.7.56-beta.18 mca_official_flutter_sdk: ^0.7.56-beta.18 copied to clipboard
The MyCover.ai SDK is a comprehensive Flutter plugin for buying insurance, supporting iOS and Android, with flexible payments, secure transactions, and a user-friendly interface.
import 'package:example/pre_sdk_screen.dart';
import 'package:flutter/material.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
void main() {
runApp(const ProviderScope(child: MyApp()));
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
debugShowCheckedModeBanner: false,
darkTheme: ThemeData(
brightness: Brightness.dark,
primaryColor: Colors.blueGrey[800],
scaffoldBackgroundColor: Colors.black,
cardColor: Colors.grey[800],
textTheme: const TextTheme(
displayLarge: TextStyle(
color: Colors.white,
fontSize: 32.0,
fontWeight: FontWeight.bold),
titleLarge: TextStyle(color: Colors.white70, fontSize: 20.0),
bodyLarge: TextStyle(color: Colors.white70, fontSize: 16.0),
bodyMedium: TextStyle(color: Colors.white60, fontSize: 14.0),
),
buttonTheme: const ButtonThemeData(
buttonColor: Colors.blueAccent,
textTheme: ButtonTextTheme.primary,
),
iconTheme: const IconThemeData(
color: Colors.white,
),
appBarTheme: AppBarTheme(
color: Colors.blueGrey[900],
iconTheme: const IconThemeData(color: Colors.white),
toolbarTextStyle: const TextTheme(
titleLarge: TextStyle(
color: Colors.white,
fontSize: 20.0,
fontWeight: FontWeight.bold),
).bodyMedium,
titleTextStyle: const TextTheme(
titleLarge: TextStyle(
color: Colors.white,
fontSize: 20.0,
fontWeight: FontWeight.bold),
).titleLarge,
),
dividerColor: Colors.white24,
// colorScheme: ColorScheme.fromSwatch(primarySwatch: Colors.blue)
// .copyWith(secondary: Colors.blueAccent)
// .copyWith(background: Colors.black87)
// .copyWith(error: Colors.redAccent),
),
theme: ThemeData(
// This is the theme of your application.
//
// TRY THIS: Try running your application with "flutter run". You'll see
// the application has a purple toolbar. Then, without quitting the app,
// try changing the seedColor in the colorScheme below to Colors.green
// and then invoke "hot reload" (save your changes or press the "hot
// reload" button in a Flutter-supported IDE, or press "r" if you used
// the command line to start the app).
//
// Notice that the counter didn't reset back to zero; the application
// state is not lost during the reload. To reset the state, use hot
// restart instead.
//
// This works for code too, not just values: Most code changes can be
// tested with just a hot reload.
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const PreSdkScreen());
}
}