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:math'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} |
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'; | |
void main() { | |
String response = '''{ | |
"status": { | |
"timestamp": "2021-06-17T05:09:56.181Z", | |
"error_code": 0, | |
"error_message": null, | |
"elapsed": 13, |
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 'dart:io'; | |
import 'package:camera/camera.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:path_provider/path_provider.dart'; | |
import 'package:video_player/video_player.dart'; | |
import 'package:fluttertoast/fluttertoast.dart'; | |
class VideoRecorderExample extends StatefulWidget { |
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
FIRRemoteConfig *remoteConfig = [FIRRemoteConfig remoteConfig]; | |
long expiration = (long)call.arguments[@"expiration"]; | |
[remoteConfig | |
fetchWithExpirationDuration:expiration | |
completionHandler:^(FIRRemoteConfigFetchStatus status, NSError *error) { | |
NSNumber *lastFetchTime = [[NSNumber alloc] | |
initWithLong:(long)[[remoteConfig lastFetchTime] timeIntervalSince1970] * | |
1000]; | |
NSString *lastFetchStatus = |
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 Flutter | |
@UIApplicationMain | |
@objc class AppDelegate: FlutterAppDelegate { | |
override func application( | |
_ application: UIApplication, | |
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? | |
) -> Bool { | |
GeneratedPluginRegistrant.register(with: self) |
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/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(CupertinoApp(home: DishPage())); | |
} | |
class DishPage extends StatefulWidget { | |
const DishPage({Key key}) : super(key: key); |