This file contains hidden or 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
flutter run -d chrome --release --dart-define=FLUTTER_WEB_USE_SKIA=true | |
flutter create --org org.premiumapp -i swift -a kotlin --description 'description' app_name | |
flutter create --org ru.emc.flutter.qr -i swift -a kotlin --description 'flutter emc application' flutter_emc_qr | |
flutter create --org ru.finam -i swift -a kotlin --description 'grpc chat widget' txchatwidget | |
flutter create -t module --org ru.finam -i swift -a kotlin --description 'grpc chat widget library' txchatwidget |
This file contains hidden or 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
pub global activate protoc_plugin | |
protoc --dart_out=. addressbook.proto /usr/local/Cellar/protobuf/3.7.1/include/google/protobuf/timestamp.proto | |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<title>TradeIt oAuth Login</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no, minimal-ui"/> | |
<meta name="apple-mobile-web-app-capable" content="yes"/> | |
<style> | |
html { | |
font-family: sans-serif; | |
-ms-text-size-adjust: 100%; |
This file contains hidden or 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
// To put bottom sheet into Stack (close on back press) | |
WidgetsBinding.instance.addPostFrameCallback((_) { | |
_scaffoldKey.currentState.showBottomSheet<void>(_bottomSheetBuilder); | |
}); | |
// screen sizes | |
const i5s = Size(320.0, 568.0); | |
const i8 = Size(375.0, 667.0) | |
// rounded button |
This file contains hidden or 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:novoadvisor/commons/screen_size_helpers.dart'; | |
class HomeScreen extends StatefulWidget { | |
@override | |
_HomeScreenState createState() => _HomeScreenState(); | |
} | |
class _HomeScreenState extends State<HomeScreen> { | |
PersistentBottomSheetController _controller; |
This file contains hidden or 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:someapp/commons/screen_size_helpers.dart'; | |
class HomeScreen extends StatefulWidget { | |
@override | |
_HomeScreenState createState() => _HomeScreenState(); | |
} | |
class _HomeScreenState extends State<HomeScreen> { | |
PersistentBottomSheetController _controller; |
This file contains hidden or 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
loginLogoutTest() { | |
group('app', () { | |
FlutterDriver driver; | |
setUpAll(() async { | |
driver = await FlutterDriver.connect(); | |
}); | |
tearDownAll(() async { | |
if (driver != null) { |
This file contains hidden or 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'; | |
abstract class ScreenSize { | |
static Size size(BuildContext context) { | |
return MediaQuery.of(context).size; | |
} | |
static double height(BuildContext context, | |
{double dividedBy = 1, double reducedBy = 0.0}) { | |
return (ScreenSize.size(context).height - reducedBy) / dividedBy; |
This file contains hidden or 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:firebase_storage/firebase_storage.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:meta/meta.dart'; | |
enum ImageDownloadState { Idle, GettingURL, Downloading, Done, Error } | |
class FirebaseStorageImage extends StatefulWidget { | |
/// The reference of the image that has to be loaded. | |
final StorageReference reference; | |
/// The widget that will be displayed when loading if no [placeholderImage] is set. |