badge_button 0.0.8 copy "badge_button: ^0.0.8" to clipboard
badge_button: ^0.0.8 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 Row(
        children: [
          Spacer(),
          Column(
            children: [
              Spacer(),
              BadgeButton(
                color: Colors.blue,
                hasIcon: false,
                text: "Example",
                textColor: Colors.white,
                textSize: 13,
              ),
              Spacer(),
            ],
          ),
          Spacer(),
        ],
      ),
    );
  }
}
2
likes
135
points
62
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