main_button 0.0.16 copy "main_button: ^0.0.16" to clipboard
main_button: ^0.0.16 copied to clipboard

is a versatile Flutter package for creating highly customizable buttons with options for loading indicators, disabled states, and flexible content.

example/lib/main.dart

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

import 'home_screen.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    MainWidgetsUtil.init(
      context,
      designSize: const Size(375, 812),
      minTextAdapt: true,
    );
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.yellow),
        useMaterial3: true,
      ),
      home: const HomeScreen(),
    );
  }
}
2
likes
160
points
497
downloads

Publisher

verified publisherabdelrahman.ghanem.eg

Weekly Downloads

is a versatile Flutter package for creating highly customizable buttons with options for loading indicators, disabled states, and flexible content.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_svg, main_widgets

More

Packages that depend on main_button