From a9761f06849992bfb2c12e7b97e07692dc316b78 Mon Sep 17 00:00:00 2001 From: venbaittech Date: Thu, 22 May 2025 14:17:38 +0530 Subject: [PATCH] micorsoft redirect --- .../authentication/login/login_widget.dart | 7 +- lib/Screens/myTemplates/template.dart | 214 ++++++++++++------ lib/app.dart | 28 +++ lib/routes/custom_router.dart | 7 + 4 files changed, 191 insertions(+), 65 deletions(-) diff --git a/lib/Screens/authentication/login/login_widget.dart b/lib/Screens/authentication/login/login_widget.dart index 0446170..66364fb 100644 --- a/lib/Screens/authentication/login/login_widget.dart +++ b/lib/Screens/authentication/login/login_widget.dart @@ -1,4 +1,8 @@ import 'dart:convert'; +// import 'dart:ui' as html; +import 'dart:html' as html; + +import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:fluttertoast/fluttertoast.dart'; import 'package:frontend/config/apiUrl.dart'; @@ -6,6 +10,7 @@ import 'package:google_fonts/google_fonts.dart'; import 'package:http/http.dart' as http; import 'package:go_router/go_router.dart'; import 'package:shared_preferences/shared_preferences.dart'; +import 'package:url_launcher/url_launcher.dart'; class LoginWidget extends StatefulWidget { final bool isDesktop; @@ -709,7 +714,7 @@ class _LoginWidgetState extends State { children: [ Expanded( child: ElevatedButton( - onPressed: () => (), + onPressed: () {}, style: ElevatedButton.styleFrom( backgroundColor: Colors.white, // Button color foregroundColor: Colors.black, // Text color diff --git a/lib/Screens/myTemplates/template.dart b/lib/Screens/myTemplates/template.dart index 31cecb7..8600b62 100644 --- a/lib/Screens/myTemplates/template.dart +++ b/lib/Screens/myTemplates/template.dart @@ -1,18 +1,26 @@ import 'dart:convert'; import 'dart:io' as io show Directory, File; +import 'package:flutter_quill/flutter_quill.dart' hide Text; +import 'package:flutter/material.dart'; +import 'package:flutter_quill/flutter_quill.dart' hide Text; +import 'package:flutter_quill_extensions/flutter_quill_extensions.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_quill/flutter_quill.dart'; import 'package:flutter_localizations/flutter_localizations.dart'; +import 'package:flutter_quill/flutter_quill_internal.dart'; import 'package:flutter_quill/quill_delta.dart'; import 'package:flutter_quill_extensions/flutter_quill_extensions.dart'; +import 'package:google_fonts/google_fonts.dart'; import 'package:path/path.dart' as path; import 'package:responsive_builder/responsive_builder.dart'; import '../../routes/custom_appBar.dart'; import '../../routes/custom_drawer.dart'; import '../../services/apiService.dart'; +import '../../utils/auth_utils.dart'; +import '../../widgets/custom_user_travel.dart'; /// Custom Embed Definition class TimeStampEmbed { @@ -26,21 +34,40 @@ class Template extends StatefulWidget { class TemplateState extends State