Click to expand
|
|-- lib
| |-- app_delegate.dart
| |-- bloc
| | |-- User
| | | |-- User_bloc.dart
dependencies: | |
flutter: | |
sdk: flutter | |
cupertino_icons: ^0.1.3 | |
dio: ^3.0.9 | |
intl: ^0.15.8 | |
path: ^1.6.4 | |
share: ^0.6.5 | |
get_it: ^4.0.2 |
|
|-- lib
| |-- app_delegate.dart
| |-- bloc
| | |-- User
| | | |-- User_bloc.dart
import 'dart:io'; | |
import 'package:path/path.dart' as Path; | |
import 'package:firebase_storage/firebase_storage.dart'; | |
class FirebaseUtility{ | |
static Future<String> uploadFileToFirebase(File file) async { | |
try { | |
StorageReference storageReference = FirebaseStorage.instance | |
.ref() |
import 'package:flutter/material.dart'; | |
import 'dart:typed_data'; | |
import 'package:flutter/rendering.dart'; | |
import 'dart:ui' as ui; | |
/// This just adds overlay and builds [_MarkerHelper] on that overlay. | |
/// [_MarkerHelper] does all the heavy work of creating and getting bitmaps | |
class MarkerGenerator { | |
final Function(List<Uint8List>) callback; | |
final List<Widget> markerWidgets; |
flutter build apk | |
cp build/app/outputs/apk/release/app-release.apk buildOutput/ | |
flutter build ios | |
cd ios | |
xcodebuild -workspace Runner.xcworkspace -scheme Runner -sdk iphoneos -configuration Release archive -archivePath $PWD/build/Runner.xcarchive | |
xcodebuild -exportArchive -archivePath $PWD/build/Runner.xcarchive -exportOptionsPlist exportOptions.plist -exportPath $PWD/build/Runner.ipa | |
cd .. | |
cp ios/build/Runner.ipa/Runner.ipa buildOutput/ |
using System; | |
using System.ComponentModel; | |
using Xamarin.Forms; | |
namespace Sample.Controls | |
{ | |
public class Card : View | |
{ | |
public Card() | |
{ |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Collections.Specialized; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Xamarin.Forms; |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Android.App; | |
using Android.Content; | |
using Android.Graphics; | |
using Android.Graphics.Drawables; | |
using Android.OS; | |
using Android.Runtime; |
using System; | |
using Xamarin.Forms; | |
namespace Sample.Controls | |
{ | |
public class BlurredImage : Image | |
{ | |
} |
using Newtonsoft.Json; | |
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace Nonco.Model.PaymentGatway | |
{ | |
public class CreditCardModel | |
{ | |
[JsonProperty("exp_month")] |