mint_flutter_extensions 0.0.2 copy "mint_flutter_extensions: ^0.0.2" to clipboard
mint_flutter_extensions: ^0.0.2 copied to clipboard

A set of Flutter extensions to code happier.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:mint_flutter_extensions/mint_flutter_extensions.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Example of Mint Flutter Extensions',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(
          seedColor: Colors.green,
        ),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Home'),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({
    super.key,
    required this.title,
  });

  final String title;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: context.primaryColor,
        title: Text(
          title,
          style: TextStyle(
            color: context.onPrimaryColor,
          ),
        ),
      ),
      body: Container(),
    );
  }
}