mirror of
				https://github.com/johrpan/musicus_mobile.git
				synced 2025-10-26 18:57:25 +01:00 
			
		
		
		
	mobile: Add about screen
This commit is contained in:
		
							parent
							
								
									0ccebb2217
								
							
						
					
					
						commit
						a0310883fb
					
				
					 4 changed files with 81 additions and 0 deletions
				
			
		|  | @ -4,6 +4,7 @@ import 'package:musicus_database/musicus_database.dart'; | |||
| 
 | ||||
| import '../icons.dart'; | ||||
| 
 | ||||
| import 'about.dart'; | ||||
| import 'person.dart'; | ||||
| import 'settings.dart'; | ||||
| 
 | ||||
|  | @ -48,6 +49,10 @@ class _HomeScreenState extends State<HomeScreen> { | |||
|                 value: 2, | ||||
|                 child: Text('Settings'), | ||||
|               ), | ||||
|               PopupMenuItem( | ||||
|                 value: 3, | ||||
|                 child: Text('About'), | ||||
|               ), | ||||
|             ], | ||||
|             onSelected: (selected) { | ||||
|               if (selected == 1) { | ||||
|  | @ -65,6 +70,13 @@ class _HomeScreenState extends State<HomeScreen> { | |||
|                     builder: (context) => SettingsScreen(), | ||||
|                   ), | ||||
|                 ); | ||||
|               } else if (selected == 3) { | ||||
|                 Navigator.push( | ||||
|                   context, | ||||
|                   MaterialPageRoute( | ||||
|                     builder: (context) => AboutScreen(), | ||||
|                   ), | ||||
|                 ); | ||||
|               } | ||||
|             }, | ||||
|           ), | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Elias Projahn
						Elias Projahn