mca_official_flutter_sdk 0.7.57 copy "mca_official_flutter_sdk: ^0.7.57" to clipboard
mca_official_flutter_sdk: ^0.7.57 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.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:fuhad/pre_sdk_screen.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(
            backgroundColor: 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(

          colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),

          useMaterial3: true,
        ),
        home: const PreSdkScreen());
  }
}