game_play_button 0.0.3 copy "game_play_button: ^0.0.3" to clipboard
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,
              )
            ],
          ),
        ),
      ),
    );
  }
}
2
likes
140
points
211
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter game button

Homepage

License

Apache-2.0 (license)

Dependencies

flutter, google_fonts

More

Packages that depend on game_play_button