wormhole_button 0.0.2 wormhole_button: ^0.0.2 copied to clipboard
Custom and modern buttons by Programming Wormhole
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,
),
],
),
),
);
}
}