diff --git a/Dockerfile b/Dockerfile index c81dc27..7c09e23 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,5 @@ # Stage 1: Build the Flutter web project -FROM debian:bullseye-slim as build - +FROM debian:latest AS build # Install required dependencies RUN apt-get update && apt-get install -y \ curl \ diff --git a/devtools_options.yaml b/devtools_options.yaml new file mode 100644 index 0000000..fa0b357 --- /dev/null +++ b/devtools_options.yaml @@ -0,0 +1,3 @@ +description: This file stores settings for Dart & Flutter DevTools. +documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states +extensions: diff --git a/lib/core/vm/books/create_a_book_vm.dart b/lib/core/vm/books/create_a_book_vm.dart index a7b5054..31b78e5 100644 --- a/lib/core/vm/books/create_a_book_vm.dart +++ b/lib/core/vm/books/create_a_book_vm.dart @@ -2,7 +2,7 @@ import 'dart:convert'; import 'dart:typed_data'; import 'package:file_picker/file_picker.dart'; import 'package:flutter_dotenv/flutter_dotenv.dart'; -import 'package:universal_html/html.dart'; +// import 'package:universal_html/html.dart' as html; import '../../core.dart'; import 'package:http/http.dart' as http; diff --git a/lib/ui/screens/auth/widgets/new_password_form.dart b/lib/ui/screens/auth/widgets/new_password_form.dart index 20665e5..f2c4010 100644 --- a/lib/ui/screens/auth/widgets/new_password_form.dart +++ b/lib/ui/screens/auth/widgets/new_password_form.dart @@ -1,6 +1,6 @@ import 'package:go_router/go_router.dart'; import 'package:provider/provider.dart'; -import 'package:universal_html/html.dart'; +import 'package:universal_html/html.dart' as html; import '../../../../core/core.dart'; import '../../../ui.dart'; @@ -18,7 +18,7 @@ class _SetNewPasswordFormState extends State { void initState() { // TODO: implement initState super.initState(); - final uri = Uri.parse(window.location.href); + final uri = Uri.parse(html.window.location.href); final pathSegments = uri.pathSegments.takeWhile((value) => value != ''); token = pathSegments.isNotEmpty ? pathSegments.last : null; diff --git a/lib/ui/screens/auth/widgets/unverified_user_form.dart b/lib/ui/screens/auth/widgets/unverified_user_form.dart index d63c873..977cfe4 100644 --- a/lib/ui/screens/auth/widgets/unverified_user_form.dart +++ b/lib/ui/screens/auth/widgets/unverified_user_form.dart @@ -1,6 +1,6 @@ import 'package:go_router/go_router.dart'; import 'package:provider/provider.dart'; -import 'package:universal_html/html.dart'; +// import 'package:universal_html/html.dart'; import '../../../../core/core.dart'; import '../../../ui.dart'; diff --git a/lib/ui/screens/auth/widgets/verify_mail_screen.dart b/lib/ui/screens/auth/widgets/verify_mail_screen.dart index 74fabec..dad8e0e 100644 --- a/lib/ui/screens/auth/widgets/verify_mail_screen.dart +++ b/lib/ui/screens/auth/widgets/verify_mail_screen.dart @@ -2,7 +2,7 @@ import 'package:flutter_spinkit/flutter_spinkit.dart'; import 'package:go_router/go_router.dart'; import 'package:litpad/core/core.dart'; import 'package:provider/provider.dart'; -import 'package:universal_html/html.dart'; +import 'package:universal_html/html.dart' as html; import '../../../components/components.dart'; @@ -19,7 +19,7 @@ class _VerifyMailScreenState extends State { @override void initState() { super.initState(); - final uri = Uri.parse(window.location.href); + final uri = Uri.parse(html.window.location.href); final pathSegments = uri.pathSegments.takeWhile((value) => value != ''); token = pathSegments.isNotEmpty ? pathSegments.last : null;