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:
@ -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),
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user