2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-14 11:15:26 +00:00

Add a custom "back" button to refreshable state

- Long press to return to the "home" screen
This commit is contained in:
Oliver
2021-10-03 11:06:27 +11:00
parent 9eaf4a09da
commit 38e4735f77
3 changed files with 33 additions and 0 deletions

View File

@ -1,3 +1,4 @@
import 'package:inventree/widget/back.dart';
import "package:inventree/widget/drawer.dart";
import "package:flutter/cupertino.dart";
import "package:flutter/material.dart";
@ -66,6 +67,7 @@ abstract class RefreshableState<T extends StatefulWidget> extends State<T> {
return AppBar(
title: Text(getAppBarTitle(context)),
actions: getAppBarActions(context),
leading: backButton(context),
);
}