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 'package:encrypt/encrypt.dart' as en; | |
Future<String> encryptWithAesNonce( | |
dynamic jsonPayload, | |
String aesKeyString, | |
String nonceKeyString, | |
) async { | |
try { | |
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 '/flutter_flow/flutter_flow_theme.dart'; | |
import '/flutter_flow/flutter_flow_util.dart'; | |
import '/flutter_flow/flutter_flow_widgets.dart'; | |
import 'package:aligned_tooltip/aligned_tooltip.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:google_fonts/google_fonts.dart'; | |
import 'package:provider/provider.dart'; | |
import 'home_page_model.dart'; | |
export 'home_page_model.dart'; |
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
MediaQuery( | |
// This will set scaling for the app to always remain 1:1 globally | |
data: MediaQuery.of(context).copyWith(textScaler: TextScaler.linear(1.0)), | |
// Wrap your Material App with MediaQuery to implement this | |
child: MaterialApp.router( | |
title: 'ScaleFactorText', | |
... | |
), | |
); |
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:encrypt/encrypt.dart' as encrypt; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
void main() { | |
runApp(EncryptionApp()); | |
} |
This file has been truncated, but you can view the full file.
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
// BEGIN GENERATED ICONS | |
/// <i class="material-icons md-36">10k</i> — material icon named "10k". | |
static const IconData ten_k = IconData(0xe000, fontFamily: 'MaterialIcons'); | |
/// <i class="material-icons-sharp md-36">10k</i> — material icon named "10k" (sharp). | |
static const IconData ten_k_sharp = IconData(0xe700, fontFamily: 'MaterialIcons'); | |
/// <i class="material-icons-round md-36">10k</i> — material icon named "10k" (round). | |
static const IconData ten_k_rounded = IconData(0xf4df, fontFamily: 'MaterialIcons'); |
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
// ignore_for_file: use_build_context_synchronously | |
import 'dart:convert'; | |
import 'dart:io'; | |
import 'package:advance_pdf_viewer2/advance_pdf_viewer.dart'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:path_provider/path_provider.dart'; | |
import 'package:pdf_viewer_project/pages/pdf_viewer_page.dart'; |
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(), |
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
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
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}, |
OlderNewer