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
// TextFormField & Form Validation. | |
// https://flutter.dev/docs/cookbook/forms/validation | |
class FormValidation extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
final appTitle = 'Form Validation Demo'; | |
return MaterialApp( | |
title: appTitle, | |
home: Scaffold( |
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' show Future; | |
import 'dart:math' show Random; | |
import 'dart:typed_data' show Int64List; | |
import 'dart:ui' show Color; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
// | |
import 'package:flutter_local_notifications/flutter_local_notifications.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 'dart:async' show Future; | |
import 'dart:io' show File; | |
import 'dart:typed_data' show Int64List; | |
import 'dart:ui' show Color, FontWeight, Radius, VoidCallback; | |
import 'package:http/http.dart' as http; |
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_string_encryption/flutter_string_encryption.dart' | |
show PlatformStringCryptor; | |
class StringCrypt { | |
StringCrypt({ | |
String key, | |
String password, | |
String salt, | |
}) { | |
_crypto = PlatformStringCryptor(); |
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/material.dart' show mustCallSuper, VoidCallback; | |
import 'package:package_info/package_info.dart' show PackageInfo; | |
import './string_encryption.dart' show StringCrypt; | |
import 'package:firebase_remote_config/firebase_remote_config.dart' as r; | |
export 'package:firebase_remote_config/firebase_remote_config.dart' | |
show LastFetchStatus, RemoteConfigSettings, RemoteConfigValue; |
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:english_words/english_words.dart'; | |
class Model{ | |
List<String> getData() { | |
Iterable<WordPair> wordPair = generateWordPairs().take(10); | |
List<String> data = List(); | |
wordPair.forEach((pair) { | |
data.add(pair.asPascalCase); |
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' show Icon, State; | |
import 'package:flutter/material.dart' show Colors, Icons; | |
import 'package:english_words/english_words.dart' as w; | |
class WordPair { | |
WordPair(this.state); | |
final State state; |
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' show Icon, State; | |
import 'package:flutter/material.dart' show Colors, Icons; | |
import '../../model/home/model.dart'; | |
class Controller { | |
Controller(this.state){ | |
model = Model(); |
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/material.dart' | |
show | |
AppBar, | |
BuildContext, | |
Divider, | |
EdgeInsets, | |
ListTile, | |
ListView, | |
Scaffold, | |
State, |
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' | |
show | |
Brightness, | |
BuildContext, | |
Column, | |
CrossAxisAlignment, | |
CupertinoColors, | |
CupertinoPageScaffold, | |
CupertinoSliverNavigationBar, | |
CustomScrollView, |