Skip to content

Commit

Permalink
Merge pull request #81 from JordyHers-org/chore/22-change-location-of…
Browse files Browse the repository at this point in the history
…-floating-action-button-in-fullscreen-mode

chore(#22) : remove the floating action button and replace it with AppBar having a single back button
  • Loading branch information
i-am-ijaz authored Jun 5, 2023
2 parents ea419a3 + 3cabb00 commit 15a260c
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions lib/app/pages/parent_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -328,19 +328,21 @@ class _ParentPageState extends State<ParentPage>

Widget _buildMapFullScreen(database) {
return Scaffold(
body: Consumer<Position>(
builder: (_, position, __) {
return GeoFull(position, database);
},
appBar: AppBar(
leading: BackButton(
onPressed: () {
setState(() {
mapScreenState = MapScreenState.Small;
});
},
),
),
floatingActionButtonLocation: FloatingActionButtonLocation.startTop,
floatingActionButton: FloatingActionButton(
onPressed: () {
setState(() {
mapScreenState = MapScreenState.Small;
});
},
child: Icon(Icons.arrow_back_ios),
body: SafeArea(
child: Consumer<Position>(
builder: (_, position, __) {
return GeoFull(position, database);
},
),
),
);
}
Expand Down

0 comments on commit 15a260c

Please sign in to comment.