Add support for company attachments (#261)

* Add support for company attachments

- Add API version check
- Add new class
- Add link to company detail page
- Assorted refactoring

* linting fixes
This commit is contained in:
Oliver 2023-02-16 22:50:32 +11:00 committed by GitHub
parent c7527e8b4e
commit 9485d858eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 102 additions and 35 deletions

View file

@ -1,6 +1,9 @@
import "package:flutter/material.dart";
import "package:inventree/api.dart";
import "package:inventree/widget/back.dart";
import "package:inventree/widget/drawer.dart";
import "package:flutter/material.dart";
/*
@ -62,6 +65,9 @@ abstract class RefreshableState<T extends StatefulWidget> extends State<T> with
bool get loaded => !loading;
// Helper function to return API instance
InvenTreeAPI get api => InvenTreeAPI();
// Update current tab selection
void onTabSelectionChanged(int index) {