@ -1,4 +1,5 @@
import ' dart:io ' show Platform ;
import ' dart:io ' show Platform ;
import ' package:auto_size_text/auto_size_text.dart ' ;
import ' package:barcode_scan2/barcode_scan2.dart ' ;
import ' package:barcode_scan2/barcode_scan2.dart ' ;
import ' package:diplomaticquarterapp/analytics/google-analytics.dart ' ;
import ' package:diplomaticquarterapp/analytics/google-analytics.dart ' ;
import ' package:diplomaticquarterapp/config/config.dart ' ;
import ' package:diplomaticquarterapp/config/config.dart ' ;
@ -144,17 +145,30 @@ class _AppDrawerState extends State<AppDrawer> {
( user ! = null & & projectProvider ! . isLogin ) ? user ! . firstName ! + ' ' + user ! . lastName ! : TranslationBase . of ( context ) . cantSeeProfile ,
( user ! = null & & projectProvider ! . isLogin ) ? user ! . firstName ! + ' ' + user ! . lastName ! : TranslationBase . of ( context ) . cantSeeProfile ,
style: TextStyle ( color: Color ( 0xff2E303A ) , fontWeight: FontWeight . bold , fontSize: 20 , letterSpacing: - 1.2 , height: 35 / 20 ) ,
style: TextStyle ( color: Color ( 0xff2E303A ) , fontWeight: FontWeight . bold , fontSize: 20 , letterSpacing: - 1.2 , height: 35 / 20 ) ,
) ,
) ,
Text(
AutoSize Text(
( user ! = null & & projectProvider ! . isLogin )
( user ! = null & & projectProvider ! . isLogin )
? TranslationBase . of ( context ) . fileNumber + " : " + user ! . patientID . toString ( )
? TranslationBase . of ( context ) . fileNumber + " : " + user ! . patientID . toString ( )
: TranslationBase . of ( context ) . loginRegisterNow ,
: TranslationBase . of ( context ) . loginRegisterNow ,
maxLines: 1 ,
minFontSize: 10 ,
style: TextStyle (
style: TextStyle (
color: Color ( 0xff2E303A ) ,
fontSize: SizeConfig . textMultiplier ! * 1.6 ,
font Size: 16 ,
font Weight: FontWeight . w600 ,
letterSpacing: - 0. 96 ,
letterSpacing: - 0. 3 9,
height: 1 ,
height: 0.8 ,
) ,
) ,
) ,
) ,
/ / Text (
/ / ( user ! = null & & projectProvider ! . isLogin )
/ / ? TranslationBase . of ( context ) . fileNumber + " : " + user ! . patientID . toString ( )
/ / : TranslationBase . of ( context ) . loginRegisterNow ,
/ / style: TextStyle (
/ / color: Color ( 0xff2E303A ) ,
/ / fontSize: 16 ,
/ / letterSpacing: - 0.96 ,
/ / height: 1 ,
/ / ) ,
/ / ) ,
mHeight ( 20.0 ) ,
mHeight ( 20.0 ) ,
( user ! = null & & projectProvider ! . isLogin )
( user ! = null & & projectProvider ! . isLogin )
? Image . network ( " https://api.qrserver.com/v1/create-qr-code/?size=250x250&data= ${ user ! . patientID . toString ( ) } " , fit: BoxFit . fill , height: 73.5 , width: 73.5 )
? Image . network ( " https://api.qrserver.com/v1/create-qr-code/?size=250x250&data= ${ user ! . patientID . toString ( ) } " , fit: BoxFit . fill , height: 73.5 , width: 73.5 )