This file contains 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 UIKit | |
import SwiftUI | |
import Flutter | |
typealias FlutterResult = (Result<String, Error>) -> Void | |
@UIApplicationMain | |
@objc class AppDelegate: FlutterAppDelegate, NativeMobileHostApi { | |
private var navigationController: DelegateViewController? = nil | |
This file contains 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
{ | |
"9 payment service Bank": "120001", | |
"AB MICROFINANCE BANK": "090270", | |
"ABBEY MORTGAGE BANK": "070010", | |
"ABOVE ONLY MICROFINANCE BANK": "090260", | |
"ABU MICROFINANCE BANK": "090197", | |
"ACCESS BANK": "000014", | |
"ACCESSMONEY": "100013", | |
"ACCION MFB": "090134", | |
"ADDOSSER MFBB": "090160", |
This file contains 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
Below are the Big O performance of common functions of different Java Collections. | |
List | Add | Remove | Get | Contains | Next | Data Structure | |
---------------------|------|--------|------|----------|------|--------------- | |
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array | |
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List | |
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array |
This file contains 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
class CustomAmountKeyboard extends StatefulWidget { | |
const CustomAmountKeyboard({Key? key}) : super(key: key); | |
@override | |
State<CustomAmountKeyboard> createState() => _CustomAmountKeyboardState(); | |
} | |
class _CustomAmountKeyboardState extends State<CustomAmountKeyboard> { | |
late final FocusNode focusNode; | |
late final TextEditingController controller; |
This file contains 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
class AnimatedDotsProgress extends StatefulWidget { | |
const AnimatedDotsProgress({super.key, this.length = 3}); | |
final int length; | |
@override | |
State<AnimatedDotsProgress> createState() => _AnimatedDotsProgressState(); | |
} | |
class _AnimatedDotsProgressState extends State<AnimatedDotsProgress> |
This file contains 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
class RoundLinearProgress extends StatelessWidget { | |
const RoundLinearProgress({super.key, double progress = 0}) | |
: _progress = progress, | |
assert( | |
progress >= 0 && progress <= 100, | |
'indicator progress must be between 0 and 100', | |
); | |
final double _progress; |
This file contains 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
name: form_widget_demo | |
description: A new Flutter project. | |
publish_to: 'none' # Remove this line if you wish to publish to pub.dev | |
version: 1.0.0+1 | |
environment: | |
sdk: '>=3.0.5 <4.0.0' | |
dependencies: |
This file contains 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
ImagePickerFormField( | |
validator: (imageFile) { | |
if (imageFile == null) return 'Please select an image'; | |
return null; | |
}, | |
), |
This file contains 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
class ImagePickerFormField extends FormField<File?> { | |
ImagePickerFormField({ | |
super.key, | |
ImagePickerInputController? controller, | |
ValueChanged<File?>? onChanged, | |
super.validator, | |
super.autovalidateMode, | |
}) : super( | |
initialValue: controller?.value, | |
builder: (state) { |