@ -104,7 +104,7 @@ class _TrainInfoMaterialBeforeState extends State<_TrainInfoMaterialBefore> {
CircularProgressIndicator ( ) ,
CircularProgressIndicator ( ) ,
Text (
Text (
" Conectare... " ,
" Conectare... " ,
style: Theme . of ( context ) . textTheme . title ,
style: Theme . of ( context ) . textTheme . headline6 ,
) ,
) ,
] ,
] ,
) ,
) ,
@ -172,7 +172,7 @@ class _TrainInfoMaterialBeforeState extends State<_TrainInfoMaterialBefore> {
: widget . lookupResult = = TrainLookupResult . NOT_FOUND
: widget . lookupResult = = TrainLookupResult . NOT_FOUND
? " Trenul nu a fost găsit "
? " Trenul nu a fost găsit "
: " A apărut o eroare în căutarea trenului " ,
: " A apărut o eroare în căutarea trenului " ,
style: Theme . of ( context ) . textTheme . title ,
style: Theme . of ( context ) . textTheme . headline6 ,
) ,
) ,
) ,
) ,
Expanded ( child: Container ( ) , ) ,
Expanded ( child: Container ( ) , ) ,
@ -352,9 +352,9 @@ class DisplayTrainID extends StatelessWidget {
return Text (
return Text (
" ${ list [ 0 ] } ${ list [ 1 ] } " ,
" ${ list [ 0 ] } ${ list [ 1 ] } " ,
style: ( isSmallScreen ( context )
style: ( isSmallScreen ( context )
? Theme . of ( context ) . textTheme . display1
? Theme . of ( context ) . textTheme . headline4
: Theme . of ( context ) . textTheme . display2 ) . copyWith (
: Theme . of ( context ) . textTheme . headline3 ) . copyWith (
color: Theme . of ( context ) . textTheme . body1 . color ,
color: Theme . of ( context ) . textTheme . bodyText2 . color ,
fontWeight: FontWeight . bold ,
fontWeight: FontWeight . bold ,
) ,
) ,
textAlign: TextAlign . center ,
textAlign: TextAlign . center ,
@ -376,7 +376,7 @@ class DisplayTrainOperator extends StatelessWidget {
builder: ( context , op ) {
builder: ( context , op ) {
return Text (
return Text (
op ,
op ,
style: Theme . of ( context ) . textTheme . body1 . copyWith (
style: Theme . of ( context ) . textTheme . bodyText2 . copyWith (
fontStyle: FontStyle . italic ,
fontStyle: FontStyle . italic ,
fontSize: isSmallScreen ( context ) ? 12 : 14 ,
fontSize: isSmallScreen ( context ) ? 12 : 14 ,
) ,
) ,
@ -404,7 +404,7 @@ class DisplayTrainRoute extends StatelessWidget {
padding: const EdgeInsets . all ( 4 ) ,
padding: const EdgeInsets . all ( 4 ) ,
child: Text (
child: Text (
routePieces [ 0 ] ,
routePieces [ 0 ] ,
style: Theme . of ( context ) . textTheme . body1 . copyWith (
style: Theme . of ( context ) . textTheme . bodyText2 . copyWith (
fontSize: 16 ,
fontSize: 16 ,
) ,
) ,
) ,
) ,
@ -418,7 +418,7 @@ class DisplayTrainRoute extends StatelessWidget {
padding: const EdgeInsets . all ( 4 ) ,
padding: const EdgeInsets . all ( 4 ) ,
child: Text (
child: Text (
routePieces [ 1 ] ,
routePieces [ 1 ] ,
style: Theme . of ( context ) . textTheme . body1 . copyWith (
style: Theme . of ( context ) . textTheme . bodyText2 . copyWith (
fontSize: 16 ,
fontSize: 16 ,
) ,
) ,
textAlign: TextAlign . right ,
textAlign: TextAlign . right ,
@ -446,7 +446,7 @@ class DisplayTrainDeparture extends StatelessWidget {
builder: ( context , dataPlecare ) {
builder: ( context , dataPlecare ) {
return Text (
return Text (
" Plecare în ${ dataPlecare . day . toString ( ) . padLeft ( 2 , ' 0 ' ) } . ${ dataPlecare . month . toString ( ) . padLeft ( 2 , ' 0 ' ) } . ${ dataPlecare . year . toString ( ) . padLeft ( 4 , ' 0 ' ) } " ,
" Plecare în ${ dataPlecare . day . toString ( ) . padLeft ( 2 , ' 0 ' ) } . ${ dataPlecare . month . toString ( ) . padLeft ( 2 , ' 0 ' ) } . ${ dataPlecare . year . toString ( ) . padLeft ( 4 , ' 0 ' ) } " ,
style: Theme . of ( context ) . textTheme . body1 . copyWith (
style: Theme . of ( context ) . textTheme . bodyText2 . copyWith (
fontStyle: FontStyle . italic ,
fontStyle: FontStyle . italic ,
fontWeight: FontWeight . w200 ,
fontWeight: FontWeight . w200 ,
fontSize: isSmallScreen ( context ) ? 12 : 14 ,
fontSize: isSmallScreen ( context ) ? 12 : 14 ,
@ -477,7 +477,7 @@ class DisplayTrainLastInfo extends StatelessWidget {
padding: const EdgeInsets . all ( 2 ) ,
padding: const EdgeInsets . all ( 2 ) ,
child: Text (
child: Text (
" Ultima informație " ,
" Ultima informație " ,
style: Theme . of ( context ) . textTheme . body1 . copyWith (
style: Theme . of ( context ) . textTheme . bodyText2 . copyWith (
fontSize: isSmallScreen ( context ) ? 18 : 20 ,
fontSize: isSmallScreen ( context ) ? 18 : 20 ,
fontWeight: FontWeight . bold ,
fontWeight: FontWeight . bold ,
) ,
) ,
@ -493,7 +493,7 @@ class DisplayTrainLastInfo extends StatelessWidget {
builder: ( context , station ) {
builder: ( context , station ) {
return Text (
return Text (
station ,
station ,
style: Theme . of ( context ) . textTheme . body1 ,
style: Theme . of ( context ) . textTheme . bodyText2 ,
textAlign: TextAlign . left ,
textAlign: TextAlign . left ,
) ;
) ;
} ,
} ,
@ -507,7 +507,7 @@ class DisplayTrainLastInfo extends StatelessWidget {
builder: ( context , event ) {
builder: ( context , event ) {
return Text (
return Text (
event ,
event ,
style: Theme . of ( context ) . textTheme . body1 ,
style: Theme . of ( context ) . textTheme . bodyText2 ,
textAlign: TextAlign . right ,
textAlign: TextAlign . right ,
) ;
) ;
} ,
} ,
@ -540,7 +540,7 @@ class DisplayTrainLastInfo extends StatelessWidget {
if ( snapshot . data > 0 ) {
if ( snapshot . data > 0 ) {
return Text (
return Text (
" ${ snapshot . data } minute întârziere " ,
" ${ snapshot . data } minute întârziere " ,
style: Theme . of ( context ) . textTheme . body1 . copyWith (
style: Theme . of ( context ) . textTheme . bodyText2 . copyWith (
fontSize: 14 ,
fontSize: 14 ,
color: Color . fromRGBO ( 200 , 30 , 15 , 1 ) ,
color: Color . fromRGBO ( 200 , 30 , 15 , 1 ) ,
) ,
) ,
@ -549,7 +549,7 @@ class DisplayTrainLastInfo extends StatelessWidget {
else {
else {
return Text (
return Text (
" ${ - snapshot . data } minute mai devreme " ,
" ${ - snapshot . data } minute mai devreme " ,
style: Theme . of ( context ) . textTheme . body1 . copyWith (
style: Theme . of ( context ) . textTheme . bodyText2 . copyWith (
fontSize: 12 ,
fontSize: 12 ,
color: Color . fromRGBO ( 15 , 200 , 15 , 1 ) ,
color: Color . fromRGBO ( 15 , 200 , 15 , 1 ) ,
) ,
) ,
@ -590,7 +590,7 @@ class DisplayTrainNextStop extends StatelessWidget {
padding: const EdgeInsets . all ( 4 ) ,
padding: const EdgeInsets . all ( 4 ) ,
child: Text (
child: Text (
" Următoarea oprire " ,
" Următoarea oprire " ,
style: Theme . of ( context ) . textTheme . body1 . copyWith (
style: Theme . of ( context ) . textTheme . bodyText2 . copyWith (
fontSize: isSmallScreen ( context ) ? 18 : 20 ,
fontSize: isSmallScreen ( context ) ? 18 : 20 ,
fontWeight: FontWeight . bold ,
fontWeight: FontWeight . bold ,
) ,
) ,
@ -604,7 +604,7 @@ class DisplayTrainNextStop extends StatelessWidget {
padding: const EdgeInsets . fromLTRB ( 4 , 0 , 4 , 0 ) ,
padding: const EdgeInsets . fromLTRB ( 4 , 0 , 4 , 0 ) ,
child: Text (
child: Text (
station ,
station ,
style: Theme . of ( context ) . textTheme . body1 . copyWith (
style: Theme . of ( context ) . textTheme . bodyText2 . copyWith (
fontSize: isSmallScreen ( context ) ? 16 : 18 ,
fontSize: isSmallScreen ( context ) ? 16 : 18 ,
fontWeight: FontWeight . w500 ,
fontWeight: FontWeight . w500 ,
) ,
) ,
@ -623,14 +623,14 @@ class DisplayTrainNextStop extends StatelessWidget {
children: < Widget > [
children: < Widget > [
Text (
Text (
" în ${ arrival . day } ${ months [ arrival . month - 1 ] } ${ arrival . year } " ,
" în ${ arrival . day } ${ months [ arrival . month - 1 ] } ${ arrival . year } " ,
style: Theme . of ( context ) . textTheme . body1 . copyWith (
style: Theme . of ( context ) . textTheme . bodyText2 . copyWith (
fontSize: isSmallScreen ( context ) ? 12 : 14 ,
fontSize: isSmallScreen ( context ) ? 12 : 14 ,
) ,
) ,
textAlign: TextAlign . center ,
textAlign: TextAlign . center ,
) ,
) ,
Text (
Text (
" la ${ arrival . hour . toString ( ) . padLeft ( 2 , ' 0 ' ) } : ${ arrival . minute . toString ( ) . padLeft ( 2 , ' 0 ' ) } " ,
" la ${ arrival . hour . toString ( ) . padLeft ( 2 , ' 0 ' ) } : ${ arrival . minute . toString ( ) . padLeft ( 2 , ' 0 ' ) } " ,
style: Theme . of ( context ) . textTheme . body1 . copyWith (
style: Theme . of ( context ) . textTheme . bodyText2 . copyWith (
fontSize: isSmallScreen ( context ) ? 12 : 14 ,
fontSize: isSmallScreen ( context ) ? 12 : 14 ,
) ,
) ,
textAlign: TextAlign . center ,
textAlign: TextAlign . center ,
@ -672,7 +672,7 @@ class DisplayTrainDestination extends StatelessWidget {
padding: const EdgeInsets . all ( 4 ) ,
padding: const EdgeInsets . all ( 4 ) ,
child: Text (
child: Text (
" Destinația " ,
" Destinația " ,
style: Theme . of ( context ) . textTheme . body1 . copyWith (
style: Theme . of ( context ) . textTheme . bodyText2 . copyWith (
fontSize: isSmallScreen ( context ) ? 18 : 20 ,
fontSize: isSmallScreen ( context ) ? 18 : 20 ,
fontWeight: FontWeight . bold ,
fontWeight: FontWeight . bold ,
) ,
) ,
@ -686,7 +686,7 @@ class DisplayTrainDestination extends StatelessWidget {
padding: const EdgeInsets . fromLTRB ( 4 , 0 , 4 , 0 ) ,
padding: const EdgeInsets . fromLTRB ( 4 , 0 , 4 , 0 ) ,
child: Text (
child: Text (
station ,
station ,
style: Theme . of ( context ) . textTheme . body1 . copyWith (
style: Theme . of ( context ) . textTheme . bodyText2 . copyWith (
fontSize: isSmallScreen ( context ) ? 16 : 18 ,
fontSize: isSmallScreen ( context ) ? 16 : 18 ,
fontWeight: FontWeight . w500 ,
fontWeight: FontWeight . w500 ,
) ,
) ,
@ -705,14 +705,14 @@ class DisplayTrainDestination extends StatelessWidget {
children: < Widget > [
children: < Widget > [
Text (
Text (
" în ${ arrival . day } ${ months [ arrival . month - 1 ] } ${ arrival . year } " ,
" în ${ arrival . day } ${ months [ arrival . month - 1 ] } ${ arrival . year } " ,
style: Theme . of ( context ) . textTheme . body1 . copyWith (
style: Theme . of ( context ) . textTheme . bodyText2 . copyWith (
fontSize: isSmallScreen ( context ) ? 12 : 14 ,
fontSize: isSmallScreen ( context ) ? 12 : 14 ,
) ,
) ,
textAlign: TextAlign . center ,
textAlign: TextAlign . center ,
) ,
) ,
Text (
Text (
" la ${ arrival . hour . toString ( ) . padLeft ( 2 , ' 0 ' ) } : ${ arrival . minute . toString ( ) . padLeft ( 2 , ' 0 ' ) } " ,
" la ${ arrival . hour . toString ( ) . padLeft ( 2 , ' 0 ' ) } : ${ arrival . minute . toString ( ) . padLeft ( 2 , ' 0 ' ) } " ,
style: Theme . of ( context ) . textTheme . body1 . copyWith (
style: Theme . of ( context ) . textTheme . bodyText2 . copyWith (
fontSize: isSmallScreen ( context ) ? 12 : 14 ,
fontSize: isSmallScreen ( context ) ? 12 : 14 ,
) ,
) ,
textAlign: TextAlign . center ,
textAlign: TextAlign . center ,
@ -747,7 +747,7 @@ class DisplayTrainRouteDistance extends StatelessWidget {
children: < Widget > [
children: < Widget > [
Text (
Text (
" Distanța rutei " ,
" Distanța rutei " ,
style: Theme . of ( context ) . textTheme . body1 . copyWith (
style: Theme . of ( context ) . textTheme . bodyText2 . copyWith (
fontSize: isSmallScreen ( context ) ? 16 : 18 ,
fontSize: isSmallScreen ( context ) ? 16 : 18 ,
fontWeight: FontWeight . bold ,
fontWeight: FontWeight . bold ,
) ,
) ,
@ -758,7 +758,7 @@ class DisplayTrainRouteDistance extends StatelessWidget {
builder: ( context , distance ) {
builder: ( context , distance ) {
return Text (
return Text (
" $ distance km " ,
" $ distance km " ,
style: Theme . of ( context ) . textTheme . body1 . copyWith (
style: Theme . of ( context ) . textTheme . bodyText2 . copyWith (
fontSize: isSmallScreen ( context ) ? 14 : 16 ,
fontSize: isSmallScreen ( context ) ? 14 : 16 ,
) ,
) ,
textAlign: TextAlign . center ,
textAlign: TextAlign . center ,
@ -789,7 +789,7 @@ class DisplayTrainRouteDuration extends StatelessWidget {
children: < Widget > [
children: < Widget > [
Text (
Text (
" Durata rutei " ,
" Durata rutei " ,
style: Theme . of ( context ) . textTheme . body1 . copyWith (
style: Theme . of ( context ) . textTheme . bodyText2 . copyWith (
fontSize: isSmallScreen ( context ) ? 16 : 18 ,
fontSize: isSmallScreen ( context ) ? 16 : 18 ,
fontWeight: FontWeight . bold ,
fontWeight: FontWeight . bold ,
) ,
) ,
@ -831,7 +831,7 @@ class DisplayTrainRouteDuration extends StatelessWidget {
return Text (
return Text (
durationString . toString ( ) ,
durationString . toString ( ) ,
style: Theme . of ( context ) . textTheme . body1 . copyWith (
style: Theme . of ( context ) . textTheme . bodyText2 . copyWith (
fontSize: isSmallScreen ( context ) ? 14 : 16 ,
fontSize: isSmallScreen ( context ) ? 14 : 16 ,
) ,
) ,
textAlign: TextAlign . center ,
textAlign: TextAlign . center ,
@ -925,8 +925,8 @@ class SlimAppBar extends StatelessWidget {
title ,
title ,
textAlign: TextAlign . center ,
textAlign: TextAlign . center ,
style:
style:
Theme . of ( context ) . appBarTheme . textTheme ? . caption ? . copyWith ( color: Theme . of ( context ) . appBarTheme . textTheme ? . body1 ? . color ) ? ?
Theme . of ( context ) . appBarTheme . textTheme ? . caption ? . copyWith ( color: Theme . of ( context ) . appBarTheme . textTheme ? . bodyText2 ? . color ) ? ?
Theme . of ( context ) . textTheme . caption . copyWith ( color: Theme . of ( context ) . textTheme . body1 . color ) ,
Theme . of ( context ) . textTheme . caption . copyWith ( color: Theme . of ( context ) . textTheme . bodyText2 . color ) ,
) ,
) ,
) ,
) ,
) ,
) ,