Last active
February 15, 2020 06:33
-
-
Save slamdon/5d8427ea38d1bdc6e38641fb3009a3d2 to your computer and use it in GitHub Desktop.
PageView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@override | |
Widget build(BuildContext context) { | |
return Center( | |
child: SizedBox.fromSize( | |
size: Size.fromHeight(550), | |
child: PageView.builder( | |
itemCount: trips.length, | |
itemBuilder: (context, index){ | |
return TripPageItem(trip: trips[index]); | |
}, | |
), | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment