mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Separate onBuild and refresh callbacks
This commit is contained in:
parent
90a39ae3de
commit
93630ea910
5 changed files with 35 additions and 15 deletions
|
|
@ -41,9 +41,11 @@ class _CategoryDisplayState extends RefreshableState<CategoryDisplayWidget> {
|
|||
|
||||
List<InvenTreePart> _parts = List<InvenTreePart>();
|
||||
|
||||
/*
|
||||
* Request data from the server
|
||||
*/
|
||||
@override
|
||||
Future<void> onBuild(BuildContext context) async {
|
||||
refresh();
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> request(BuildContext context) async {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue