game_button 0.0.1 game_button: ^0.0.1 copied to clipboard
Flutter Game Button
import 'package:flutter/material.dart';
import 'package:game_button/game_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: Scaffold(
appBar: AppBar(
title: const Text('Game Button'),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
GameButton(
title: 'Play Online',
backColor: Colors.deepPurple,
gradientColors: const [
Colors.purple,
Colors.purpleAccent,
],
// textColor: Colors.blue,
// textStokeColor: Colors.white,
// textStokeWidth: 3,
// fontWeight: FontWeight.w100,
// stokeColor: Colors.black,
// stokeWidth: 3,
onTap: () {
print('Clicked');
},
),
],
),
),
),
);
}
}