NEW: create new file viewer with MIH package

This commit is contained in:
2025-11-17 12:55:34 +02:00
parent 66887d23f8
commit 3417299989
9 changed files with 447 additions and 390 deletions

View File

@@ -0,0 +1,28 @@
import 'package:flutter/material.dart';
class MihFileViewerProvider extends ChangeNotifier {
String filePath;
String fileLink;
int toolIndex;
MihFileViewerProvider({
this.filePath = '',
this.fileLink = '',
this.toolIndex = 0,
});
void setToolIndex(int index) {
toolIndex = index;
notifyListeners();
}
void setFilePath(String path) {
filePath = path;
notifyListeners();
}
void setFileLink(String name) {
fileLink = name;
notifyListeners();
}
}