This file contains 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 FlexRow extends StatelessWidget { | |
const FlexRow({ | |
super.key, | |
required this.children, | |
this.width = 150, | |
this.height = 50, | |
this.color, | |
this.borderRadius = const BorderRadius.all(Radius.circular(24)), | |
this.boxShadow, | |
}); |
This file contains 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:qwiz_ui/app_box_shadow.dart'; | |
import 'package:qwiz_ui/qwiz_ui.dart'; | |
class AppDialog extends PopupRoute { | |
AppDialog({ | |
required Widget child, | |
double width = 300, | |
double height = 300, | |
Duration transitionDuration = const Duration(milliseconds: 300), |
This file contains 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'; | |
class AppBoxShadow extends BoxShadow { | |
const AppBoxShadow({ | |
super.color = Colors.black12, | |
super.offset = Offset.zero, | |
super.spreadRadius = 4, | |
super.blurRadius = 8, | |
super.blurStyle = BlurStyle.normal, | |
}); |
This file contains 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:http/http.dart' as http; | |
Future<String> checkAppAvailabilityInAppStore(String appId) async { | |
final uri = Uri.parse('https://itunes.apple.com/lookup?id=$appId'); | |
final response = await http.get(uri); | |
if (response.statusCode != 200) { | |
throw Exception('Failed to check app availability'); | |
} |
This file contains 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:ui'; | |
import 'package:flutter/material.dart'; | |
class BlurredBox extends StatelessWidget { | |
const BlurredBox({ | |
super.key, | |
this.child, | |
this.blurredChild, | |
this.width, |
This file contains 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:io'; | |
import 'package:http/http.dart' as http; | |
void main() async { | |
var server = await HttpServer.bind(InternetAddress.anyIPv4, 8080); | |
print('Listening on port ${server.port}...'); | |
await for (var request in server) { | |
handleRequest(request); | |
} |
This file contains 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
buildCounter: (context, {currentLength, maxLength, isFocused}) => null, |
This file contains 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:flutter/services.dart'; | |
import 'dart:developer' as developer; | |
void main() => runApp(const MyApp()); | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override |
This file contains 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:io'; | |
import 'package:args/args.dart'; | |
import 'package:yaml/yaml.dart'; | |
class VersionType { | |
const VersionType._(); | |
static const major = 'major'; | |
static const minor = 'minor'; |
This file contains 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
... | |
final _streamController = StreamController(); // Single Subscription Stream | |
final _streamController = StreamController<double>.broadcast(); // Broadcast Stream | |
late final StreamSubscription<double> _streamSubscription; | |
... | |
// Subscribe | |
onPressed: () { | |
final stream = _streamController.stream; |