Last active
February 19, 2023 00:48
-
-
Save arif-pandu/e5108840e37258f1d3f3ad8089833319 to your computer and use it in GitHub Desktop.
Droplets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:droplets/screen/gameplay.dart'; | |
import 'package:flutter/material.dart'; | |
class HomeScreen extends StatefulWidget { | |
const HomeScreen({super.key}); | |
@override | |
State<HomeScreen> createState() => _HomeScreenState(); | |
} | |
class _HomeScreenState extends State<HomeScreen> { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: Center( | |
child: ElevatedButton( | |
onPressed: () { | |
Navigator.of(context).push( | |
MaterialPageRoute(builder: (context) => const GameplayScreen()), | |
); | |
}, | |
child: const Text("PLAY"), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment