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:camera/camera.dart'; | |
import 'dart:io'; | |
import 'package:path_provider/path_provider.dart'; | |
import 'package:image_picker/image_picker.dart'; | |
import 'dart:async'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/material.dart'; | |
/* | |
//Needed in Main.dart |
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:async/async.dart'; | |
import 'dart:io'; | |
import 'package:path/path.dart'; | |
import 'dart:convert'; | |
import 'package:http/http.dart' as http; | |
import 'package:flutter/material.dart'; | |
// Usage |
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:video_player/video_player.dart'; | |
class AspectRatioVideo extends StatefulWidget { | |
final VideoPlayerController controller; | |
AspectRatioVideo(this.controller); | |
@override | |
AspectRatioVideoState createState() => new AspectRatioVideoState(); |
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
update_fastlane | |
default_platform(:ios) | |
platform :ios do | |
desc "Push a new beta build to TestFlight" | |
lane :beta do | |
increment_build_number(xcodeproj: "Runner.xcodeproj") | |
build_app(workspace: "Runner.xcworkspace", scheme: "Runner") | |
upload_to_testflight(skip_waiting_for_build_processing: true) |
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
//Beta | |
on run {input, parameters} | |
tell application "Terminal" | |
activate | |
do script "cd <YOUR PROJECT PATH>/android && fastlane beta && cd <YOUR PROJECT PATH>/ios && fastlane beta" | |
end tell | |
tell application "System Events" | |
try | |
set visible of application process "Terminal" to false | |
end try |
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/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:my_unify_mobile/custom/native_widgets.dart'; | |
class ExamplePickerPage extends StatefulWidget { | |
@override | |
ExamplePickerPageState createState() => ExamplePickerPageState(); | |
} |
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:flutter/cupertino.dart'; | |
import 'dart:io'; | |
// Native Button | |
class NativeButton extends StatelessWidget { | |
final Widget child; | |
final VoidCallback onPressed; | |
final Color buttonColor; | |
final EdgeInsetsGeometry padding; |
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:flutter/cupertino.dart'; | |
import 'dart:io'; | |
import 'dart:async'; | |
//Example | |
class StartPage extends StatelessWidget { | |
// Example to Put on Login Function to Only Show on Version Change | |
// var prefs = await SharedPreferences.getInstance(); |
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:Unify_Mobile/globals.dart' as globals; | |
import 'package:Unify_Mobile/custom/whatsnew.dart'; | |
class StartPage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
List<WhatsNewItem> _items = [ | |
WhatsNewItem( | |
title: Text('Dart Theme'), |