Skip to content

Instantly share code, notes, and snippets.

@alectogeek
Last active December 9, 2019 19:35
Show Gist options
  • Select an option

  • Save alectogeek/cf037e98384b22a1eed371a5a131a27a to your computer and use it in GitHub Desktop.

Select an option

Save alectogeek/cf037e98384b22a1eed371a5a131a27a to your computer and use it in GitHub Desktop.

Revisions

  1. alectogeek renamed this gist Dec 9, 2019. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. alectogeek created this gist Dec 9, 2019.
    33 changes: 33 additions & 0 deletions example
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    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,
    )),
    ),
    ),
    );
    }
    }