Пример #1
0
 void showDemoDialog(BuildContext context = null, Widget child = null)
 {
     CupertinoRouteUtils.showCupertinoDialog <string>(
         context: context,
         builder: (BuildContext context1) => child
         ).then_((string value) => {
         if (value != null)
         {
             setState(() => { lastSelectedValue = value; });
         }
     });
 }
 void showDemoDialog(
     BuildContext context = null,
     Widget child         = null
     )
 {
     CupertinoRouteUtils.showCupertinoDialog(
         context: context,
         builder: (BuildContext _context) => child
         ).Then((object value) => {
         if (value != null)
         {
             this.setState(() => { this.lastSelectedValue = value as string; });
         }
     });
 }