Last active
December 9, 2019 19:35
-
-
Save alectogeek/cf037e98384b22a1eed371a5a131a27a to your computer and use it in GitHub Desktop.
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:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(CupertinoApp(home: DishPage())); | |
} | |
class DishPage extends StatefulWidget { | |
const DishPage({Key key}) : super(key: key); | |
@override | |
_DishPageState createState() => _DishPageState(); | |
} | |
class _DishPageState extends State<DishPage> { | |
@override | |
Widget build(BuildContext context) { | |
return CupertinoPageScaffold( | |
child: Container( | |
color: CupertinoColors.black, | |
child: GestureDetector( | |
onTap: () => showCupertinoModalPopup( | |
context: context, | |
builder: (context) => Container( | |
height: 200, | |
width: 200, | |
color: CupertinoColors.white, | |
)), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment