badge_button 0.0.7 copy "badge_button: ^0.0.7" to clipboard
badge_button: ^0.0.7 copied to clipboard

This is a very beautiful button widget. Can you use. Uzbekistan is very beautiful country

example/lib/main.dart

import 'package:example/s/badge_button.dart';
import 'package:flutter/material.dart';

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const ExamplePage(title: 'Example'),
    );
  }
}

class ExamplePage extends StatefulWidget {
  const ExamplePage({super.key, required this.title});
  final String title;

  @override
  State<ExamplePage> createState() => _ExamplePageState();
}

class _ExamplePageState extends State<ExamplePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          backgroundColor: Theme.of(context).colorScheme.inversePrimary,
          title: Text(widget.title),
        ),
        body: const Center(
          child: BadgeButton(
            color: Colors.blue,
            hasIcon: true,
            text: "Example",
            textColor: Colors.white,
            textSize: 13,
          ),
        ));
  }
}
2
likes
135
points
55
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

This is a very beautiful button widget. Can you use. Uzbekistan is very beautiful country

Homepage

License

MIT (license)

Dependencies

flutter, google_fonts

More

Packages that depend on badge_button