mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-10 18:07:59 -06:00
BUGIX styling changes
This commit is contained in:
@@ -259,28 +259,28 @@ class _LabelsPageState extends State<LabelsPage> with SingleTickerProviderStateM
|
|||||||
void _openEditCorrespondentPage(Correspondent correspondent) {
|
void _openEditCorrespondentPage(Correspondent correspondent) {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
buildLabelPageRoute(EditCorrespondentPage(correspondent: correspondent)),
|
_buildLabelPageRoute(EditCorrespondentPage(correspondent: correspondent)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _openEditDocumentTypePage(DocumentType docType) {
|
void _openEditDocumentTypePage(DocumentType docType) {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
buildLabelPageRoute(EditDocumentTypePage(documentType: docType)),
|
_buildLabelPageRoute(EditDocumentTypePage(documentType: docType)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _openEditTagPage(Tag tag) {
|
void _openEditTagPage(Tag tag) {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
buildLabelPageRoute(EditTagPage(tag: tag)),
|
_buildLabelPageRoute(EditTagPage(tag: tag)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _openEditStoragePathPage(StoragePath path) {
|
void _openEditStoragePathPage(StoragePath path) {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
buildLabelPageRoute(EditStoragePathPage(
|
_buildLabelPageRoute(EditStoragePathPage(
|
||||||
storagePath: path,
|
storagePath: path,
|
||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
@@ -289,34 +289,34 @@ class _LabelsPageState extends State<LabelsPage> with SingleTickerProviderStateM
|
|||||||
void _openAddCorrespondentPage() {
|
void _openAddCorrespondentPage() {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
buildLabelPageRoute(const AddCorrespondentPage()),
|
_buildLabelPageRoute(const AddCorrespondentPage()),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _openAddDocumentTypePage() {
|
void _openAddDocumentTypePage() {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
buildLabelPageRoute(const AddDocumentTypePage()),
|
_buildLabelPageRoute(const AddDocumentTypePage()),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _openAddTagPage() {
|
void _openAddTagPage() {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
buildLabelPageRoute(const AddTagPage()),
|
_buildLabelPageRoute(const AddTagPage()),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _openAddStoragePathPage() {
|
void _openAddStoragePathPage() {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
buildLabelPageRoute(const AddStoragePathPage()),
|
_buildLabelPageRoute(const AddStoragePathPage()),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
MaterialPageRoute<dynamic> buildLabelPageRoute(Widget page) {
|
MaterialPageRoute<dynamic> _buildLabelPageRoute(Widget page) {
|
||||||
return MaterialPageRoute(
|
return MaterialPageRoute(
|
||||||
builder: (_) => MultiBlocProvider(
|
builder: (_) => MultiProvider(
|
||||||
providers: [
|
providers: [
|
||||||
Provider.value(value: context.read<LabelRepository>()),
|
Provider.value(value: context.read<LabelRepository>()),
|
||||||
Provider.value(value: context.read<ApiVersion>())
|
Provider.value(value: context.read<ApiVersion>())
|
||||||
|
|||||||
Reference in New Issue
Block a user