@ -440,26 +440,30 @@ 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 (
alignment: MainAxisAlignment . center ,
padding: const EdgeInsets . all ( 8.0 ) ,
children: [
child: OverflowBar (
ElevatedButton (
alignment: MainAxisAlignment . center ,
style: ElevatedButton . styleFrom ( foregroundColor: Colors . blue ) ,
spacing: 8.0 ,
onPressed: onSavePressed ,
children: [
child: const Text (
ElevatedButton (
' Save ' ,
style: ElevatedButton . styleFrom (
style: TextStyle ( color: Colors . white , fontSize: 16.0 ) ,
backgroundColor: Colors . blue ,
foregroundColor: Colors . white ,
) ,
onPressed: onSavePressed ,
child: const Text ( ' Save ' ) ,
) ,
) ,
) ,
ElevatedButton (
ElevatedButton (
style: ElevatedButton . styleFrom (
style: ElevatedButton . styleFrom ( foregroundColor: Colors . red ) ,
backgroundColor: Colors . red ,
onPressed: onCancelPressed ,
foregroundColor: Colors . white ,
child: const Text (
) ,
' Cancel ' ,
onPressed: onCancelPressed ,
style: TextStyle ( color: Colors . white , fontSize: 16.0 ) ,
child: const Text ( ' Cancel ' ) ,
) ,
) ,
) ,
] ,
] ,
) ,
) ,
) ,
) ,
) ,
) ;
) ;
@ -484,46 +488,50 @@ 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 (
alignment: MainAxisAlignment . center ,
padding: const EdgeInsets . all ( 8.0 ) ,
children: [
child: OverflowBar (
FilledButton (
alignment: MainAxisAlignment . center ,
style: FilledButton . styleFrom (
spacing: 8.0 ,
backgroundColor:
children: < Widget > [
selectedPlaceCategory = = PlaceCategory . favorite
FilledButton (
? Colors . green [ 700 ]
style: FilledButton . styleFrom (
: Colors . lightGreen ) ,
backgroundColor:
child: const Text (
selectedPlaceCategory = = PlaceCategory . favorite
' Favorites ' ,
? Colors . green [ 700 ]
style: TextStyle ( color: Colors . white , fontSize: 14.0 ) ,
: Colors . lightGreen ) ,
onPressed: ( ) = > onChanged ( PlaceCategory . favorite ) ,
child: const Text (
' Favorites ' ,
style: TextStyle ( color: Colors . white , fontSize: 14.0 ) ,
) ,
) ,
) ,
onPressed: ( ) = > onChanged ( PlaceCategory . favorite ) ,
FilledButton (
) ,
style: FilledButton . styleFrom (
FilledButton (
backgroundColor:
style: FilledButton . styleFrom (
selectedPlaceCategory = = PlaceCategory . visited
backgroundColor:
? Colors . green [ 700 ]
selectedPlaceCategory = = PlaceCategory . visited
: Colors . lightGreen ) ,
? Colors . green [ 700 ]
onPressed: ( ) = > onChanged ( PlaceCategory . visited ) ,
: Colors . lightGreen ) ,
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 (
) ,
style: FilledButton . styleFrom (
FilledButton (
backgroundColor:
style: FilledButton . styleFrom (
selectedPlaceCategory = = PlaceCategory . wantToGo
backgroundColor:
? Colors . green [ 700 ]
selectedPlaceCategory = = PlaceCategory . wantToGo
: Colors . lightGreen ) ,
? Colors . green [ 700 ]
onPressed: ( ) = > onChanged ( PlaceCategory . wantToGo ) ,
: Colors . lightGreen ) ,
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 ) ,
] ,
) ,
) ,
] ,
) ,
) ,
) ,
) ,
) ;
) ;