Last active
February 10, 2021 23:22
-
-
Save dariadobsai/3f6b2a5d2e9c6dc284c5d91f37a66d7f to your computer and use it in GitHub Desktop.
Revisions
-
dariadobsai revised this gist
Feb 10, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ Widget _openPopupMenu() => PopupMenuButton<int>( onSelected: (value) { setState(() { value == 1 ? isPresentTime = true : isPresentTime = false; // shorter form: isPresent = value == 1; }); }, itemBuilder: (context) => [ -
dariadobsai created this gist
Feb 10, 2021 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ Widget _openPopupMenu() => PopupMenuButton<int>( onSelected: (value) { setState(() { value == 1 ? isPresentTime = true : isPresentTime = false; }); }, itemBuilder: (context) => [ ... ], icon: Container( ... ), ... ), );