game_button 0.0.1 copy "game_button: ^0.0.1" to clipboard
game_button: ^0.0.1 copied to clipboard

Flutter Game Button

example/lib/main.dart

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');
                },
              ),
            ],
          ),
        ),
      ),
    );
  }
}
1
likes
130
points
27
downloads

Publisher

verified publisherprogrammingwormhole.com

Weekly Downloads

Flutter Game Button

Homepage

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, google_fonts

More

Packages that depend on game_button