Skip to content

Commit

Permalink
chore: updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kayprogrammer committed Aug 19, 2024
1 parent b345f9d commit f1c858a
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down
3 changes: 3 additions & 0 deletions devtools_options.yaml
Original file line number Diff line number Diff line change
@@ -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:
2 changes: 1 addition & 1 deletion lib/core/vm/books/create_a_book_vm.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions lib/ui/screens/auth/widgets/new_password_form.dart
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -18,7 +18,7 @@ class _SetNewPasswordFormState extends State<SetNewPasswordForm> {
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;
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/screens/auth/widgets/unverified_user_form.dart
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
4 changes: 2 additions & 2 deletions lib/ui/screens/auth/widgets/verify_mail_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -19,7 +19,7 @@ class _VerifyMailScreenState extends State<VerifyMailScreen> {
@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;
Expand Down

0 comments on commit f1c858a

Please sign in to comment.