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:collection'; | |
| class LazyMap<K, V> extends MapMixin<K, V> { | |
| final _map = Map<K, V>(); | |
| final V Function(K) _generator; | |
| LazyMap(this._generator); | |
| @override | |
| V operator [](Object key) { |
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 android.content.Context | |
| import android.graphics.* | |
| import android.os.Build | |
| import android.view.View | |
| import com.google.zxing.BarcodeFormat | |
| import com.google.zxing.EncodeHintType | |
| import com.google.zxing.qrcode.QRCodeWriter | |
| import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel | |
| import java.util.* |
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
| package com.kid.gl.utils | |
| import android.util.Log | |
| import com.google.firebase.crash.FirebaseCrash | |
| import com.google.firebase.database.DatabaseError | |
| import gl.kid.alert.BuildConfig | |
| private const val TAG = "FirePig" | |
| class FirePig(message: String): Exception(message) { |
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
| NSDictionary *searchBarTextAttributes = @{ | |
| NSForegroundColorAttributeName: lightGray, | |
| NSFontAttributeName : [UIFont systemFontOfSize:[UIFont systemFontSize]] | |
| }; | |
| [UITextField appearanceWhenContainedInInstancesOfClasses:@[[UISearchBar class]]] | |
| .defaultTextAttributes = searchBarTextAttributes; |