make web version work, add dockerfile

This commit is contained in:
2025-08-04 23:28:58 +02:00
parent fb81499fed
commit d1322d117a
6 changed files with 76 additions and 42 deletions

View File

@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:logging/logging.dart';
import 'package:pdfrx/pdfrx.dart';
import 'login_page.dart';
@@ -12,6 +13,8 @@ void main() {
}
});
pdfrxFlutterInitialize(); // Needed for web
runApp(const MyApp());
}
@@ -22,10 +25,7 @@ class MyApp extends StatelessWidget {
Widget build(BuildContext context) {
return MaterialApp(
title: 'Sheetless',
theme: ThemeData(
useMaterial3: true,
primarySwatch: Colors.blue,
),
theme: ThemeData(useMaterial3: true, primarySwatch: Colors.blue),
home: const LoginPage(),
);
}