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 'zoper_text.dart'; | |
class PinKeyboard extends StatefulWidget { | |
final double space; | |
final int length; | |
final void Function(String)? onChange; | |
final void Function(String)? onConfirm; | |
final VoidCallback? onBiometric; | |
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
import 'dart:convert'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:loading_overlay/loading_overlay.dart'; | |
import 'package:webview_flutter/webview_flutter.dart'; | |
class PayPalPayment{ | |
Future payNow() async { |
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
setState(() { | |
isLoading = true; | |
}); | |
HttpsCallable callable = | |
FirebaseFunctions.instance.httpsCallable('stripePayment'); | |
var serverData = | |
await callable.call({'amount': ((widget.quoteModel.price + 4.55) * 100).toInt()}); | |
Logger().d(serverData.data); | |
if(serverData.data == null){ | |
showSnackBar(context, null, 'Error Processing Payment'); |
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 'dart:convert'; | |
import 'dart:io'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:mms_app/core/storage/local_storage.dart'; | |
import 'package:path_provider/path_provider.dart'; | |
import 'package:sodium_libs/sodium_libs_sumo.dart'; | |
class EncryptionTool { | |
static late Sodium sodium; |
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
Performing hot reload... | |
Syncing files to device iPhone 14 Pro... | |
Reloaded 0 libraries in 84ms (compile: 26 ms, reload: 0 ms, reassemble: 43 ms). | |
flutter: ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════ | |
flutter: The following assertion was thrown during performLayout(): | |
flutter: SliverGeometry is not valid: The "layoutExtent" exceeds the "paintExtent". | |
flutter: The paintExtent is 48.0, but the layoutExtent is 50.4. | |
flutter: The RenderSliver that returned the offending geometry was: _RenderSliverPinnedPersistentHeaderForWidgets#94301 relayoutBoundary=up1 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE: | |
flutter: creator: _SliverPinnedPersistentHeader ← SliverPersistentHeader ← NestedScrollViewViewport ← | |
flutter: IgnorePointer-[GlobalKey#aeb92] ← Semantics ← Listener ← _GestureSemantics ← |
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
GroupedListView<NewMessageModel, String>( | |
elements: allMessages, | |
reverse: true, | |
controller: _scrollController, | |
groupBy: (element) => | |
(element.createdAt ~/ 86400000).toString(), | |
groupSeparatorBuilder: (String groupByValue) => Row( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: [ | |
Container( |
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 'dart:async'; | |
import '../utils/log.dart'; | |
/// Returns a `Future` in order for us to know when the callback has finished, | |
/// allowing us not to call the same callback two times in parallel | |
/// and to detect a hanging callback. | |
typedef JobCallback = Future<void> Function(CustomJob); | |
class CustomJob { |
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
List allNigerianBanks = [ | |
{"bank_name": "3LINE CARD MANAGEMENT LIMITED", "bank_code": "110005"}, | |
{"bank_name": "9 PAYMENT SOLUTIONS BANK", "bank_code": "120001"}, | |
{"bank_name": "AB MICROFINANCE BANK", "bank_code": "090270"}, | |
{"bank_name": "ABBEY MORTGAGE BANK", "bank_code": "070010"}, | |
{"bank_name": "ABOVE ONLY MICROFINANCE BANK", "bank_code": "090260"}, | |
{"bank_name": "ABU MICROFINANCE BANK", "bank_code": "090197"}, | |
{"bank_name": "ACCELEREX NETWORK LIMITED", "bank_code": "90202"}, | |
{"bank_name": "ACCELEREX NETWORK LIMITED", "bank_code": "090202"}, | |
{"bank_name": "Access Bank", "bank_code": "044"}, |
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 'package:flutter/material.dart'; | |
import 'package:listcountry/Service/api_service.dart'; | |
import 'package:listcountry/model/countrymodel.dart'; | |
import 'package:listcountry/view/Screen2.dart'; | |
import '../main.dart'; | |
import 'country_details.dart'; | |
class CountryScreen extends StatefulWidget { | |
const CountryScreen({super.key}); |
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 'dart:async'; | |
import 'package:http/http.dart'; | |
import 'package:komodo_dex/model/coin.dart'; | |
import 'package:komodo_dex/services/job_service.dart'; | |
import 'package:komodo_dex/services/mm.dart'; | |
import 'package:komodo_dex/services/mm_service.dart'; | |
import 'package:komodo_dex/widgets/bloc_provider.dart'; | |
import 'package:path_provider/path_provider.dart'; | |
import 'dart:io'; |
NewerOlder