You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							92 lines
						
					
					
						
							2.8 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							92 lines
						
					
					
						
							2.8 KiB
						
					
					
				| import 'package:flutter/material.dart'; | |
| import 'package:teso/util/SizeConfig.dart'; | |
| 
 | |
| class ProminentDisclosure extends StatefulWidget { | |
|   const ProminentDisclosure({Key key}) : super(key: key); | |
| 
 | |
|   @override | |
|   _ProminentDisclosureState createState() => _ProminentDisclosureState(); | |
| } | |
| 
 | |
| class _ProminentDisclosureState extends State<ProminentDisclosure> { | |
|   @override | |
|   Widget build(BuildContext context) { | |
|     return Scaffold( | |
|       body: Container( | |
|         margin: EdgeInsets.only(top: 40), | |
|         height: MediaQuery.of(context).size.height, | |
|         width: MediaQuery.of(context).size.width, | |
|         alignment: Alignment.center, | |
|         child: Column( | |
|           children: [ | |
|             Icon( | |
|               Icons.location_on_sharp, | |
|               color: Colors.blue, | |
|               size: 50, | |
|             ), | |
|             SizedBox( | |
|               height: 10, | |
|             ), | |
|             Text( | |
|               "Use your location", | |
|               style: TextStyle( | |
|                 fontSize: SizeConfig.blockSizeHorizontal * 4, | |
|                 fontWeight: FontWeight.w800, | |
|               ), | |
|             ), | |
|             Container( | |
|               padding: EdgeInsets.all( | |
|                 SizeConfig.blockSizeHorizontal * 3, | |
|               ), | |
|               child: Text( | |
|                 "Turn on location and give Teso App access to help you find shops on the map", | |
|                 textAlign: TextAlign.center, | |
|                 style: TextStyle( | |
|                   fontSize: SizeConfig.blockSizeHorizontal * 3.5, | |
|                   fontWeight: FontWeight.w400, | |
|                 ), | |
|               ), | |
|             ), | |
|             Container( | |
|               width: SizeConfig.blockSizeHorizontal * 50, | |
|               height: SizeConfig.blockSizeHorizontal * 70, | |
|               child: Image( | |
|                 image: AssetImage("assets/images/prominent-disclosure.jpg"), | |
|               ), | |
|             ), | |
|           ], | |
|         ), | |
|       ), | |
|       bottomNavigationBar: Padding( | |
|         padding: EdgeInsets.all( | |
|           SizeConfig.blockSizeHorizontal * 4, | |
|         ), | |
|         child: Row( | |
|           mainAxisAlignment: MainAxisAlignment.spaceBetween, | |
|           children: [ | |
|             TextButton( | |
|               onPressed: () => Navigator.pop(context, false), | |
|               child: Text( | |
|                 "No Thanks", | |
|                 style: TextStyle( | |
|                   fontSize: SizeConfig.blockSizeHorizontal * 4.2, | |
|                   fontWeight: FontWeight.w800, | |
|                 ), | |
|               ), | |
|             ), | |
|             TextButton( | |
|               onPressed: () => Navigator.pop(context, true), | |
|               child: Text( | |
|                 "Turn on", | |
|                 style: TextStyle( | |
|                   fontSize: SizeConfig.blockSizeHorizontal * 4.2, | |
|                   fontWeight: FontWeight.w800, | |
|                 ), | |
|               ), | |
|             ), | |
|           ], | |
|         ), | |
|       ), | |
|     ); | |
|   } | |
| }
 | |
| 
 |