Last active
February 10, 2021 23:22
-
-
Save dariadobsai/3f6b2a5d2e9c6dc284c5d91f37a66d7f to your computer and use it in GitHub Desktop.
Historical map overlay with MapBox in Flutter
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 characters
Widget _openPopupMenu() => PopupMenuButton<int>( | |
onSelected: (value) { | |
setState(() { | |
value == 1 ? isPresentTime = true : isPresentTime = false; // shorter form: isPresent = value == 1; | |
}); | |
}, | |
itemBuilder: (context) => [ | |
... | |
], | |
icon: Container( | |
... | |
), | |
... | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment