Skip to content

Instantly share code, notes, and snippets.

View md-weber's full-sized avatar
💙
Flutter

Max Weber md-weber

💙
Flutter
View GitHub Profile
@md-weber
md-weber / main.dart
Created January 4, 2022 20:18
Example of flow text Flutter
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@md-weber
md-weber / main.dart
Created December 29, 2021 19:23
Basic Animation for a Short
import 'package:flutter/material.dart';
class BorderAnimationRound extends StatefulWidget {
const BorderAnimationRound({Key? key}) : super(key: key);
@override
_BorderAnimationRoundState createState() => _BorderAnimationRoundState();
}
class _BorderAnimationRoundState extends State<BorderAnimationRound>
@md-weber
md-weber / example.dart
Created August 30, 2021 13:33
How to create a new List out of two Lists
void main() {
List<DensityVolume> listDensity = [DensityVolume(2.3, 3.2), DensityVolume(4.2, 2.4)];
List<HeightLengthWidth> listHeight = [HeightLengthWidth(1, 1, 1), HeightLengthWidth(2, 2, 2)];
List<Cube> result = [];
for (var i = 0; i < listDensity.length; i++) {
final densityElement = listDensity[i];
final heightElement = listHeight[i];
result.add(Cube(
GREEN='\033[0;32m'
NC='\033[0m'
LINE_BREAK="${GREEN} --- ${NC}"
echo "$LINE_BREAK"
echo "${GREEN}Welcome Screen Tests begin ${NC}"
echo "$LINE_BREAK"
# Test the Welcome Screen
flutter drive \
@md-weber
md-weber / quotes_problem.dart
Created December 22, 2020 21:26
Blog Quotes
String validString = 'This is should be valid, because of the single quote';
String notValidString = "This should not be valid, because of the double quote";
Future getPosts(BuildContext context) async {
int index = getFromSF();
QuerySnapshot querySnapshot =
await Firestore.instance.collection('fortunepool').getDocuments();
if (indexList.contains(index)) {
// TODO: get any other document
int currentIndex = index;
String myFortune = "";
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
Future<void> verifyEmail() async {
var firebaseUser = await _auth.currentUser();
// Initiates email verification for the user.
firebaseUser.sendEmailVerification();
// Returns true if the user's email is verified.
if(firebaseUser.isEmailVerified){
// email is verified
} else{
// email is not verified
}
Future<void> verifyEmail(String password) async {
var firebaseUser = await _auth.currentUser();
// Initiates email verification for the user.
firebaseUser.sendEmailVerification();
// Returns true if the user's email is verified.
if(firebaseUser.isEmailVerified){
// email is verified
} else{
// email is not verified
}
/usr/bin/xcrun altool --validate-app -f /Users/builder/ipas/Save_Recipes.ipa -t ios -u @env:APP_STORE_CONNECT_EMAIL -p @env:APP_STORE_CONNECT_PASSWORD --output-format normal (--verbose)