flat_3d_button 1.0.3 flat_3d_button: ^1.0.3 copied to clipboard
A simple 3D flat button with click animation, flat 3d button contains 3 methods, a flat 3d button with any widget as it's child, text as it's child and also an icon as it's child
🔮 Flat 3d Button #
A simple 3D flat button with click animation!
🔩 Installation #
dependencies:
flat_3d_button: ^1.0.3
🚚 Import #
import 'package:flat_3d_button/flat_3d_button.dart';
🚀 Usage Examples #
1. Counter app using flat 3D buttons:
Flat3dButton.icon(
color: Colors.red,
onPressed: _decrementCounter,
icon: Icons.remove,
),
const SizedBox(width: 10),
Flat3dButton.text(
onPressed: _resetCounter,
text: 'reset',
),
const SizedBox(width: 10),
Flat3dButton.icon(
color: Colors.green,
onPressed: _incrementCounter,
icon: Icons.add,
),
refer to the main.dart
in the example for complete source code.
2. Flat 3D button with text:
Flat3dButton.text(
onPressed: () => print('clicked'),
text: 'Flat',
);
3. Flat 3D button with icon:
Flat3dButton.icon(
onPressed: () => print('clicked'),
icon: Icons.rocket,
);
🔧 Author #
📃 License #
MIT License