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:gps/gps.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:toast/toast.dart'; | |
import 'package:geolocator/geolocator.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { |
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:io'; | |
import 'package:flutter/material.dart'; | |
import 'package:image_picker/image_picker.dart'; | |
import 'package:tflite/tflite.dart'; | |
void main() => runApp(MaterialApp( | |
home: MyApp(), | |
)); | |
class MyApp 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
Restarted application in 2,643ms. | |
D/Surface (24564): Surface::connect(this=0x6f0fd88000,api=1) | |
D/mali_winsys(24564): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000 | |
I/Choreographer(24564): Skipped 51 frames! The application may be doing too much work on its main thread. | |
D/Surface (24564): Surface::disconnect(this=0x6f0fa2f000,api=1) | |
D/Surface (24564): Surface::connect(this=0x6f0fa2f000,api=1) | |
D/mali_winsys(24564): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000 | |
D/Surface (24564): Surface::setBufferCount(this=0x6f0fa2f000,bufferCount=3) | |
[38;5;244m[log] [39;49mURL:https://ydi99sjdn9.execute-api.ap-southeast-1.amazonaws.com/v1/feeds | |
D/NetdClient(24564): queryResolvNetidForUid nid:0, uid:10768, command.cmdId:12 |
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 LottieAnimationExample extends StatefulWidget{ | |
@override | |
LottieAnimationExampleState createState() => LottieAnimationExampleState(); | |
} | |
class LottieAnimationExampleState extends State<LottieAnimationExample> with TickerProviderStateMixin{ | |
AnimationController _lottieAnimationController; | |
@override | |
void initState(){ |
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 'dart:async'; | |
import 'package:flutter/services.dart'; | |
void main() => runApp(new MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return new MaterialApp( | |
home: new HomePage(), | |
); |
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 android.os.Bundle; | |
import io.flutter.app.FlutterActivity; | |
import io.flutter.plugin.common.MethodCall; | |
import io.flutter.plugin.common.MethodChannel; | |
import io.flutter.plugins.GeneratedPluginRegistrant; | |
public class MainActivity extends FlutterActivity { | |
private static final String CHANNEL = "flutter.native/helperChannel"; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); |
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
#include "AppDelegate.h" | |
#include "GeneratedPluginRegistrant.h" | |
@implementation AppDelegate | |
- | |
(BOOL) application: (UIApplication * ) application | |
didFinishLaunchingWithOptions: (NSDictionary * ) launchOptions { | |
FlutterViewController * controller = (FlutterViewController * ) self.window.rootViewController; | |
FlutterMethodChannel * nativeChannel = [FlutterMethodChannel |
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'; | |
class Home extends StatefulWidget { | |
const Home({Key? key}) : super(key: key); | |
@override | |
_HomeState createState() => _HomeState(); | |
} | |
class _HomeState extends State<Home> with WidgetsBindingObserver { |
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'; | |
Welcome welcomeFromJson(String str) => Welcome.fromJson(json.decode(str)); | |
String welcomeToJson(Welcome data) => json.encode(data.toJson()); | |
class Welcome { | |
Welcome({ | |
this.name, | |
this.age, | |
this.technology, | |
}); | |
String name; |
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'; | |
Welcome welcomeFromJson(String str) => Welcome.fromJson(json.decode(str)); | |
String welcomeToJson(Welcome data) => json.encode(data.toJson()); | |
class Welcome { | |
Welcome({ | |
this.name, | |
this.age, | |
this.technology, | |
}); | |
String name; |
OlderNewer