This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ====================================================================================================== | |
| Use the latest test_quill.html as a reference for the full implementation | |
| Create a folder under web/ as web/fonts/ and include all the Mulish fonts for offline access from | |
| the assets/ folder in the Flutter project | |
| ====================================================================================================== | |
| Refer line 351 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| case 'setHTML': | |
| if (data.html) { | |
| // setTimeout to make this asynchronous and prevent blocking with large HTML | |
| setTimeout(function() { | |
| try { | |
| // Clear existing content | |
| editor.setContents([{ insert: '\n' }], Quill.sources.API); | |
| // For very large HTML, we need to handle it carefully | |
| const htmlString = String(data.html); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ElevatedButton( | |
| child: Text('Download as HTML'), | |
| onPressed: () { | |
| final htmlContent = _model.htmlString ?? ''; | |
| final bytes = utf8.encode(htmlContent); | |
| final blob = html.Blob([bytes], 'text/html'); | |
| final url = html.Url.createObjectUrlFromBlob(blob); | |
| final anchor = html.AnchorElement(href: url) | |
| ..setAttribute('download', 'quill_data.html') | |
| ..click(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| js: 0.6.7 | |
| back_button_interceptor: 8.0.4 | |
| g_recaptcha_v3: 1.0.0 | |
| universal_html: 2.2.4 | |
| encrypt: 5.0.3 | |
| cryptography: 2.7.0 | |
| syncfusion_flutter_pdf: 29.1.38 | |
| flutter_session_manager: 1.0.3 | |
| local_captcha: 1.0.5 | |
| dio: 5.8.0+1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:convert'; | |
| import 'dart:typed_data'; | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| window.dataLayer = window.dataLayer || []; | |
| function gtag() { dataLayer.push(arguments); } | |
| gtag('set', { 'send_page_view': false }); | |
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:convert'; | |
| void main() { | |
| String jsonString = ''' | |
| { | |
| "baseRequest": [ | |
| {"iconCode": 58513, "chipLabel": "India", "isDisabled": true, "isSelected": false}, | |
| {"iconCode": 58513, "chipLabel": "Africa", "isDisabled": true, "isSelected": false}, | |
| {"iconCode": 58395, "chipLabel": "America", "isDisabled": false, "isSelected": true}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:url_launcher/url_launcher.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class HyperlinkText extends StatefulWidget { | |
| final String text; | |
| final String url; | |
| HyperlinkText({required this.text, required this.url}); | |
| @override | |
| _HyperlinkTextState createState() => _HyperlinkTextState(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void main() async { | |
| WidgetsFlutterBinding.ensureInitialized(); | |
| GoRouter.optionURLReflectsImperativeAPIs = true; | |
| usePathUrlStrategy(); | |
| await FlutterFlowTheme.initialize(); | |
| runApp( | |
| FocusTraversalGroup( | |
| policy: WidgetOrderTraversalPolicy(), |
NewerOlder