game_play_button 0.0.3
game_play_button: ^0.0.3 copied to clipboard
Flutter game button
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:game_play_button/game_button.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
home: Scaffold(
appBar: AppBar(
title: Text('Game Button'),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
GamePlayButton(
title: 'Play Offline',
// onTap: () {},
// backColor: Colors.deepPurple,
// gradientColors: [
// Colors.purple,
// Colors.purpleAccent
// ],
// textColor: Colors.blue,
// textStokeColor: Colors.white,
// textStokeWidth: 3,
// fontWeight: FontWeight.w100,
// stokeColor: Colors.black,
// stokeWidth: 3,
)
],
),
),
),
);
}
}