Pinned Loading
-
handleGoogleSignin.dart
handleGoogleSignin.dart 1import 'package:google_sign_in/google_sign_in.dart';
2import 'package:firebase_auth/firebase_auth.dart';
34class SignInOptions{
5GoogleSignIn googleSignIn = GoogleSignIn(
-
connectionStream
connectionStream 1Future<bool> checkConnection() async{
2var connectivityResult = await (Connectivity().checkConnectivity());
3if (connectivityResult == ConnectivityResult.mobile) {
4return true;
5} else if (connectivityResult == ConnectivityResult.wifi) {
-
Gradient from Single Hex value
Gradient from Single Hex value 123LinearGradient(
4begin: Alignment.topLeft,
5end: Alignment.bottomRight,
-
All Countries in the world JSON file
All Countries in the world JSON file 1[
2{
3"id": 3901,
4"name": "Badakhshan",
5"country_id": 1,
-
string_extension.dart
string_extension.dart 1extension CapExtension on String? {
2String get inCaps => isValid ? (this!.isNotEmpty ? '${this![0].toUpperCase()}${this!.substring(1)}' : '') : '';
3String get capitalizeFirstOfEach => isValid ? (this!.replaceAll(RegExp(' +'), ' ').split(" ").map((str) => str.inCaps).join(" ")) : '';
4bool get isValid => this != null && this!.isNotEmpty;
5bool get isNotValid => this == null || this!.isEmpty;
-
launchUrlWebsiteFunction
launchUrlWebsiteFunction 1Future<void> _launchWebsite(String url) async {
2if (!(url.startsWith('http'))) {
3if (!(url.startsWith('https://'))) {
4url = 'https://' + url;
5}
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.