@ -440,28 +440,32 @@ class _AddPlaceButtonBar extends StatelessWidget {
child: Container (
child: Container (
padding: const EdgeInsets . fromLTRB ( 0.0 , 0.0 , 0.0 , 14.0 ) ,
padding: const EdgeInsets . fromLTRB ( 0.0 , 0.0 , 0.0 , 14.0 ) ,
alignment: Alignment . bottomCenter ,
alignment: Alignment . bottomCenter ,
child: ButtonBar (
child: Padding (
padding: const EdgeInsets . all ( 8.0 ) ,
child: OverflowBar (
alignment: MainAxisAlignment . center ,
alignment: MainAxisAlignment . center ,
spacing: 8.0 ,
children: [
children: [
ElevatedButton (
ElevatedButton (
style: ElevatedButton . styleFrom ( foregroundColor: Colors . blue ) ,
style: ElevatedButton . styleFrom (
onPressed: onSavePressed ,
backgroundColor: Colors . blue ,
child: const Text (
foregroundColor: Colors . white ,
' Save ' ,
style: TextStyle ( color: Colors . white , fontSize: 16.0 ) ,
) ,
) ,
onPressed: onSavePressed ,
child: const Text ( ' Save ' ) ,
) ,
) ,
ElevatedButton (
ElevatedButton (
style: ElevatedButton . styleFrom ( foregroundColor: Colors . red ) ,
style: ElevatedButton . styleFrom (
onPressed: onCancelPressed ,
backgroundColor: Colors . red ,
child: const Text (
foregroundColor: Colors . white ,
' Cancel ' ,
style: TextStyle ( color: Colors . white , fontSize: 16.0 ) ,
) ,
) ,
onPressed: onCancelPressed ,
child: const Text ( ' Cancel ' ) ,
) ,
) ,
] ,
] ,
) ,
) ,
) ,
) ,
) ,
) ;
) ;
}
}
}
}
@ -484,20 +488,23 @@ class _CategoryButtonBar extends StatelessWidget {
child: Container (
child: Container (
padding: const EdgeInsets . fromLTRB ( 0.0 , 0.0 , 0.0 , 14.0 ) ,
padding: const EdgeInsets . fromLTRB ( 0.0 , 0.0 , 0.0 , 14.0 ) ,
alignment: Alignment . bottomCenter ,
alignment: Alignment . bottomCenter ,
child: ButtonBar (
child: Padding (
padding: const EdgeInsets . all ( 8.0 ) ,
child: OverflowBar (
alignment: MainAxisAlignment . center ,
alignment: MainAxisAlignment . center ,
children: [
spacing: 8.0 ,
children: < Widget > [
FilledButton (
FilledButton (
style: FilledButton . styleFrom (
style: FilledButton . styleFrom (
backgroundColor:
backgroundColor:
selectedPlaceCategory = = PlaceCategory . favorite
selectedPlaceCategory = = PlaceCategory . favorite
? Colors . green [ 700 ]
? Colors . green [ 700 ]
: Colors . lightGreen ) ,
: Colors . lightGreen ) ,
onPressed: ( ) = > onChanged ( PlaceCategory . favorite ) ,
child: const Text (
child: const Text (
' Favorites ' ,
' Favorites ' ,
style: TextStyle ( color: Colors . white , fontSize: 14.0 ) ,
style: TextStyle ( color: Colors . white , fontSize: 14.0 ) ,
) ,
) ,
onPressed: ( ) = > onChanged ( PlaceCategory . favorite ) ,
) ,
) ,
FilledButton (
FilledButton (
style: FilledButton . styleFrom (
style: FilledButton . styleFrom (
@ -505,11 +512,11 @@ class _CategoryButtonBar extends StatelessWidget {
selectedPlaceCategory = = PlaceCategory . visited
selectedPlaceCategory = = PlaceCategory . visited
? Colors . green [ 700 ]
? Colors . green [ 700 ]
: Colors . lightGreen ) ,
: Colors . lightGreen ) ,
onPressed: ( ) = > onChanged ( PlaceCategory . visited ) ,
child: const Text (
child: const Text (
' Visited ' ,
' Visited ' ,
style: TextStyle ( color: Colors . white , fontSize: 14.0 ) ,
style: TextStyle ( color: Colors . white , fontSize: 14.0 ) ,
) ,
) ,
onPressed: ( ) = > onChanged ( PlaceCategory . visited ) ,
) ,
) ,
FilledButton (
FilledButton (
style: FilledButton . styleFrom (
style: FilledButton . styleFrom (
@ -517,15 +524,16 @@ class _CategoryButtonBar extends StatelessWidget {
selectedPlaceCategory = = PlaceCategory . wantToGo
selectedPlaceCategory = = PlaceCategory . wantToGo
? Colors . green [ 700 ]
? Colors . green [ 700 ]
: Colors . lightGreen ) ,
: Colors . lightGreen ) ,
onPressed: ( ) = > onChanged ( PlaceCategory . wantToGo ) ,
child: const Text (
child: const Text (
' Want To Go ' ,
' Want To Go ' ,
style: TextStyle ( color: Colors . white , fontSize: 14.0 ) ,
style: TextStyle ( color: Colors . white , fontSize: 14.0 ) ,
) ,
) ,
onPressed: ( ) = > onChanged ( PlaceCategory . wantToGo ) ,
) ,
) ,
] ,
] ,
) ,
) ,
) ,
) ,
) ,
) ;
) ;
}
}
}
}