diff --git a/lib/screens/githostsetup_screens.dart b/lib/screens/githostsetup_screens.dart index 8fdb4764..7ce6bb00 100644 --- a/lib/screens/githostsetup_screens.dart +++ b/lib/screens/githostsetup_screens.dart @@ -265,24 +265,38 @@ class GitHostSetupScreenState extends State { }, ); + var body = Container( + width: double.infinity, + height: double.infinity, + child: Stack( + alignment: FractionalOffset.bottomCenter, + children: [ + pageView, + DotsIndicator( + dotsCount: _pageCount, + position: _currentPageIndex, + decorator: DotsDecorator( + activeColor: Theme.of(context).primaryColorDark, + ), + ), + ], + ), + padding: EdgeInsets.all(16.0), + ); + var scaffold = Scaffold( - body: Container( - width: double.infinity, - height: double.infinity, - child: Stack( - alignment: FractionalOffset.bottomCenter, - children: [ - pageView, - DotsIndicator( - dotsCount: _pageCount, - position: _currentPageIndex, - decorator: DotsDecorator( - activeColor: Theme.of(context).primaryColorDark, + body: Stack( + children: [ + body, + if (Platform.isIOS) + InkWell( + child: Container( + child: Icon(Icons.arrow_back, size: 32.0), + padding: EdgeInsets.all(8.0), ), - ) - ], - ), - padding: EdgeInsets.all(16.0), + onTap: () => Navigator.of(context).pop(), + ), + ], ), );