Created
February 10, 2021 22:12
-
-
Save dariadobsai/6c2aeffc13f7d107dd317a2bc1b11ab8 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>( | |
itemBuilder: (context) => [ | |
PopupMenuItem( | |
value: 1, | |
child: Text("Present time"), | |
), | |
PopupMenuItem( | |
value: 2, | |
child: Text("Budapest 1884"), | |
), | |
], | |
icon: Container( | |
height: double.infinity, | |
width: double.infinity, | |
child: Center( | |
child: Icon( | |
Icons.calendar_today_rounded, | |
color: Colors.white, | |
size: 24.0, | |
), | |
), | |
decoration: new BoxDecoration( | |
color: Colors.blue, | |
shape: BoxShape.circle, | |
), | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment