Skip to content

Instantly share code, notes, and snippets.

View mmcc007's full-sized avatar
💭
😄

Maurice McCabe mmcc007

💭
😄
View GitHub Profile
$ flutter driver
Using device Android SDK built for x86.
Starting application: lib/main.dart
Initializing gradle... 0.8s
Resolving dependencies... 0.9s
Installing build/app/outputs/apk/app.apk... 2.1s
Gradle task 'assembleDebug'...
Gradle task 'assembleDebug'... Done 7.9s
Built build/app/outputs/apk/debug/app-debug.apk.
Installing build/app/outputs/apk/app.apk... 1.8s
@mmcc007
mmcc007 / run_tests.sh
Last active March 25, 2023 23:31
Run tests with code coverage on all packages in a Flutter repo and combine coverage data into a single file for reporting
#!/usr/bin/env bash
# remember some failed commands and report on exit
error=false
show_help() {
printf "usage: $0 [--help] [--report] [<path to package>]
Tool for running all unit and widget tests with code coverage.
(run from root of repo)
@mmcc007
mmcc007 / .travis.yml
Created November 2, 2018 00:32
Running Flutter unit, widget and integration tests on Travis
jobs:
include:
- stage: Unit Testing
language: generic
os: linux
env: running unit and widget tests with code coverage
before_script:
- sudo apt-get install -y --no-install-recommends lib32stdc++6 libstdc++6 > /dev/null
- git clone https://github.com/flutter/flutter.git -b beta
@mmcc007
mmcc007 / .travis.yml
Created October 11, 2018 21:52
Android Emulators in the cloud
# sudo: false --> run dist image in docker container on shared host for faster startup (runs slower)
# sudo: required --> run dist image in VM on Google Compute Engine for slower startup (runs faster)
sudo: required
dist: trusty
os:
- linux
- osx
env:
- SYS=25 ABI="google_apis;arm64-v8a"
@mmcc007
mmcc007 / gist:decd89b5f23c69d87ce207fd582e6b20
Last active August 7, 2018 21:05
Preloading form with result of async call
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:modal_progress_hud/modal_progress_hud.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@mmcc007
mmcc007 / main.html
Last active June 10, 2018 15:33
Dynamically drawing on a canvas with an angular.dart component.
<div class="game_container" >
<game-timeline></game-timeline>
</div>
0xD3ff31A353C64c64d73802EA48233df3CeFAF942