Skip to content

Instantly share code, notes, and snippets.

@alectogeek
Last active December 9, 2019 19:35
Show Gist options
  • Save alectogeek/cf037e98384b22a1eed371a5a131a27a to your computer and use it in GitHub Desktop.
Save alectogeek/cf037e98384b22a1eed371a5a131a27a to your computer and use it in GitHub Desktop.
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