diff --git a/vignettes/parallax_travel_cards_list/lib/demo.dart b/vignettes/parallax_travel_cards_list/lib/demo.dart index 4cf3e9f..146e642 100644 --- a/vignettes/parallax_travel_cards_list/lib/demo.dart +++ b/vignettes/parallax_travel_cards_list/lib/demo.dart @@ -22,28 +22,32 @@ class _TravelCardDemoState extends State { return Scaffold( appBar: _buildAppBar(), body: Container( + alignment: Alignment.center, color: Colors.white, - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - Padding( - padding: EdgeInsets.symmetric(horizontal: Styles.hzScreenPadding), - child: Text( - 'Where are you going next?', - overflow: TextOverflow.ellipsis, - style: Styles.appHeader, - maxLines: 2, + child: SingleChildScrollView( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + Padding( + padding: EdgeInsets.symmetric(horizontal: Styles.hzScreenPadding), + child: Text( + 'Where are you going next?', + overflow: TextOverflow.ellipsis, + style: Styles.appHeader, + maxLines: 2, + ), ), - ), - Expanded( - child: TravelCardList( - cities: _cityList, - onCityChange: _handleCityChange, + Padding( + padding: const EdgeInsets.symmetric(vertical: 16), + child: TravelCardList( + cities: _cityList, + onCityChange: _handleCityChange, + ), ), - ), - HotelList(_currentCity.hotels), - ], + HotelList(_currentCity.hotels), + ], + ), ), ), );