@override
Widget build(BuildContext context) {
final user = Provider.of<User>(context);
return FutureBuilder<UserData>(
future: _userData
builder: (context, AsyncSnapshot<UserData>snapshot) {
if (snapshot.hasData) {
UserData userData = snapshot.data;
......................
................
.........
}else
//return new AnimatedSwitcher(
//duration: Duration(milliseconds: 700,),switchInCurve: Curves.bounceIn,);
//return CircularProgressIndicator(); //else
return Loading();
^^ This is pretty much the gist of it. My guess is that at first !snapshot.hasData (snapshot is empty) so that's why it goes to Loading()? I'd really like for it to smoothly transition to the other pages when swiping.