Skip to content
Snippets Groups Projects
Select Git revision
  • 4da2da61a5fc522a27ba6930bae9c0c451ed9feb
  • master default protected
  • 65-improve-app-metadata
  • Release_1.8.1_81 protected
  • Release_1.8.0_80 protected
  • Release_1.7.2_79 protected
  • Release_1.7.1_78 protected
  • Release_1.7.0_77 protected
  • Release_1.6.0_76 protected
  • Release_1.5.0_75 protected
  • Release_1.4.0_74 protected
  • Release_1.3.2_73 protected
  • Release_1.3.1_72 protected
  • Release_1.3.0_71 protected
  • Release_1.2.1_70 protected
  • Release_1.2.0_69 protected
  • Release_1.1.3_68 protected
  • Release_1.1.2_67 protected
  • Release_1.1.1_66 protected
  • Release_1.1.0_65 protected
  • Release_1.0.63_64 protected
  • Release_1.0.62_63 protected
  • Release_1.0.61_62 protected
23 results

Release.xcconfig

Blame
  • home_page.dart 2.51 KiB
    import 'dart:math';
    
    import 'package:flutter/material.dart';
    import 'package:puissance4/cpu.dart';
    
    import 'match_page.dart';
    
    class HomePage extends StatelessWidget {
      @override
      Widget build(BuildContext context) {
        return Scaffold(
          backgroundColor: Colors.blue,
          body: Center(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.spaceEvenly,
              crossAxisAlignment: CrossAxisAlignment.center,
              mainAxisSize: MainAxisSize.max,
              children: <Widget>[
                FlatButton(
                  color: Colors.green,
                  padding: EdgeInsets.all(15),
                  child: Text(
                    '🧑 2 JOUEURS 🧑',
                    style: Theme.of(context)
                        .textTheme
                        .display1
                        .copyWith(color: Colors.white),
                  ),
                  onPressed: () {
                    Navigator.pushNamed(
                      context,
                      '/match',
                      arguments: {
                        'mode': Mode.PVP,
                      },
                    );
                  },
                ),
                FlatButton(
                  color: Colors.orange,
                  padding: EdgeInsets.all(15),
                  child: Text(
                    '🧑 1 JOUEUR 🤖',
                    style: Theme.of(context)
                        .textTheme
                        .display1
                        .copyWith(color: Colors.white),
                  ),
                  onPressed: () {
                    Navigator.pushNamed(
                      context,
                      '/cpu-level',
                      arguments: {
                        'mode': Mode.PVC,
                      },
                    );
                  },
                ),
                FlatButton(
                  color: Colors.white,
                  padding: EdgeInsets.all(15),
                  child: Text(
                    '🤖 DEMO 🤖',
                    style: Theme.of(context)
                        .textTheme
                        .display1
                        .copyWith(color: Colors.black),
                  ),
                  onPressed: () {
                    final harderCpu =