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/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
/// Helper function for showing an adaptive alert dialog | |
/// Returns: | |
/// - true if the default action was selected | |
/// - false if the cancel action was selected | |
/// - null if the dialog was dismissed | |
Future<bool?> showAlertDialog({ | |
required 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:async'; | |
import 'dart:developer'; | |
import 'package:firebase_remote_config/firebase_remote_config.dart'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
import 'package:riverpod_annotation/riverpod_annotation.dart'; | |
part 'firebase_remote_config_provider.g.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
import 'package:flutter/gestures.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:url_launcher/link.dart'; | |
/// Helper widget to show native-looking URLs on Flutter web | |
class URLTextWidget extends StatelessWidget { | |
const URLTextWidget({ | |
super.key, | |
required this.uri, | |
this.overflow = TextOverflow.ellipsis, |
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
#!/bin/bash | |
# Script to build and upload the ipa file to App Store Connect | |
# Exit immediately if any command fails | |
set -e | |
# Validate that the API Key ID and Issuer ID are set | |
if [[ -z ${APP_STORE_CONNECT_KEY_ID} ]]; then | |
echo "Please set APP_STORE_CONNECT_KEY_ID as an environment variable." | |
exit 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
#!/bin/bash | |
# Update Gradle, Java and other Android project settings in a Flutter project | |
# Works with both .gradle and .gradle.kts build files | |
# See: https://gradle.org/releases/ | |
# See: https://developer.android.com/build/releases/gradle-plugin#compatibility | |
DESIRED_GRADLE_VERSION="8.11.1" | |
# Build errors often show the required Java version | |
DESIRED_JAVA_VERSION="17" | |
# See: https://developer.android.com/ndk/downloads |
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
{ | |
"config" : { | |
"required_version": "2.0.0" | |
} | |
} |
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
{ | |
"config" : { | |
"required_version": "0.3.0" | |
} | |
} |
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
{ | |
"config" : { | |
"required_version": "0.3.0" | |
} | |
} |
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
{ | |
"config" : { | |
"required_version": "0.4.0" | |
} | |
} |
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/gestures.dart'; | |
import 'package:flutter/material.dart'; | |
class TripleTapDetector extends StatelessWidget { | |
const TripleTapDetector({ | |
super.key, | |
required this.child, | |
required this.onTripleTap, | |
}); | |
final Widget child; |
NewerOlder