Skip to content
View ketan-glitch's full-sized avatar
🎯
Focusing
🎯
Focusing

Block or report ketan-glitch

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. handleGoogleSignin.dart handleGoogleSignin.dart
    1
    import 'package:google_sign_in/google_sign_in.dart';
    2
    import 'package:firebase_auth/firebase_auth.dart';
    3
    
                  
    4
    class SignInOptions{
    5
      GoogleSignIn googleSignIn = GoogleSignIn(
  2. connectionStream connectionStream
    1
    Future<bool> checkConnection() async{
    2
      var connectivityResult = await (Connectivity().checkConnectivity());
    3
      if (connectivityResult == ConnectivityResult.mobile) {
    4
        return true;
    5
      } else if (connectivityResult == ConnectivityResult.wifi) {
  3. Gradient from Single Hex value Gradient from Single Hex value
    1
    
                  
    2
    
                  
    3
    LinearGradient(
    4
      begin: Alignment.topLeft,
    5
      end: Alignment.bottomRight,
  4. 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,
  5. string_extension.dart string_extension.dart
    1
    extension CapExtension on String? {
    2
      String get inCaps => isValid ? (this!.isNotEmpty ? '${this![0].toUpperCase()}${this!.substring(1)}' : '') : '';
    3
      String get capitalizeFirstOfEach => isValid ? (this!.replaceAll(RegExp(' +'), ' ').split(" ").map((str) => str.inCaps).join(" ")) : '';
    4
      bool get isValid => this != null && this!.isNotEmpty;
    5
      bool get isNotValid => this == null || this!.isEmpty;
  6. launchUrlWebsiteFunction launchUrlWebsiteFunction
    1
    Future<void> _launchWebsite(String url) async {
    2
        if (!(url.startsWith('http'))) {
    3
          if (!(url.startsWith('https://'))) {
    4
            url = 'https://' + url;
    5
          }