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

Custom and modern buttons by Programming Wormhole

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Example'),
      ),
      body: const Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            WormholeButton(
              title: 'Hello',
              borderRadius: 10,
            ),
          ],
        ),
      ),
    );
  }
}
1
likes
130
points
25
downloads

Publisher

verified publisherprogrammingwormhole.com

Weekly Downloads

Custom and modern buttons by Programming Wormhole

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, flutter_svg

More

Packages that depend on wormhole_button