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/widgets.dart'; | |
import 'package:gql/language.dart'; | |
import 'package:graphql_flutter/graphql_flutter.dart'; | |
import 'package:provider/provider.dart'; | |
enum BaseServiceRequestType { QUERY, MUTATION } | |
/// [T] is a return value | |
abstract class BaseService<T> { | |
/// [context] is a navigator context, this context doesn't have |
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
{:main $TEMPLATE$ | |
:output-to "target/main.js" | |
:output-dir "target"} |
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
{:deps {io.vouch/krell {:git/url "https://github.com/vouch-opensource/krell.git" | |
:sha "ac75bdc0e41c7e061aaf4453921c272549b7b511"} | |
io.vouch/reagent-react-native {:git/url "https://github.com/vouch-opensource/reagent-react-native.git" | |
:sha "54bf52788ab051920ed7641f386177374419e847"} | |
reagent {:mvn/version "0.10.0" | |
:exclusions [cljsjs/react cljsjs/react-dom]}}} |
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 | |
import GoogleMaps | |
@UIApplicationMain | |
@objc class AppDelegate: FlutterAppDelegate { | |
override func application( | |
_ application: UIApplication, | |
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? | |
) -> Bool { |
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
#!/bin/bash | |
sed -i .bak 's/main_production.dart/main_staging.dart/g' ios/Flutter/Generated.xcconfig | |
sed -i .bak 's/Production App Name/Staging App Name/g' ios/Runner/Info.plist | |
sed -i .bak 's/"com.app.production"/"com.app.staging"/g' ios/Runner.xcodeproj/project.pbxproj | |
# Do something to replace profiles or API Keys | |
# For ease to switch between plists profile | |
cp GoogleService-Info-staging.plist GoogleService-Info.plist | |
mv GoogleService-Info.plist ios/Runner/GoogleService-Info.plist |
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
// MIT License | |
// | |
// Copyright (c) 2020 Simon Lightfoot | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: |
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
#!/bin/bash | |
# Run to initialze pre-push configuration | |
rm -f .git/hooks/pre-push | |
cat >.git/hooks/pre-push <<EOL | |
# stash any unstaged changes | |
git stash -q --keep-index | |
# run Flutter analyze |
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'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter Demo', |
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
call plug#begin('~/.vim/plugged') | |
Plug 'junegunn/vim-easy-align' | |
Plug 'https://github.com/junegunn/vim-github-dashboard.git' | |
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
Plug 'tpope/vim-fireplace', { 'for': 'clojure' } |
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
SliverPersistentHeader( | |
delegate: SliverAppBarDelegate((context, _, __, progress) => HistoryPersistentHeaderTile(), | |
collapsedHeight: Dimensions.fixedHeaderHeight, | |
expandedHeight: Dimensions.fixedHeaderHeight), | |
pinned: true), |