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 "Generated.xcconfig" | |
FLUTTER_TARGET=lib/main_development.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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Development", | |
"request": "launch", | |
"type": "dart", | |
"program": "lib/main_development.dart", | |
"args": [ | |
"--flavor", |
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_demo_setup/env.dart'; | |
class MyApp extends StatelessWidget { | |
final Env env; | |
const MyApp({Key key, @required this.env}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
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 Env { | |
final String secret; | |
Env(this.secret); | |
} | |
class EnvValue { | |
static final Env development = Env('development secret'); | |
static final Env staging = Env('staging secret'); | |
static final Env production = Env('production secret'); | |
} |
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_demo_setup/env.dart'; | |
import 'package:flutter_demo_setup/my_app.dart'; | |
void main() => runApp(MyApp(env: EnvValue.development)); |
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 { | |
call, | |
put, | |
race, | |
select, | |
take, | |
takeLatest | |
} from 'redux-saga/effects'; | |
import actionGenerators from '../../../creators/actionGenerators'; |
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 React, { Component } from "react"; | |
import { | |
View, | |
Button | |
} from 'react-native'; | |
import { connect } from 'react-redux'; | |
import actionGenerators from "../../../redux/actionGenerators"; | |
@connect(null, ({ |
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 { handleActions } from 'redux-actions'; | |
import { combineReducers } from 'redux'; | |
| | |
import actionGenerators from './actions-generators'; | |
const initialCRUD = fromJS({ | |
data: null, operation: 'reset', error: false | |
}); | |
const reducers = {}; | |
const generateReducerFromAction = action => handleActions({ |
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
export default { | |
AUTH: [ | |
'REGISTER', | |
'LOGIN', | |
'FORGOT_PASSWORD', | |
'RESET_PASSWORD', | |
'LOGOUT' | |
] | |
}; |
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 { createActions } from 'redux-actions'; | |
import groupActions from './groupActions' | |
const processAction = { | |
START: ()=>{...}, | |
CANCEL: ()=>{...}, | |
SUCCEED: ()=>{...}, | |
FAIL: ()=>{...}, | |
CLEAR: ()=>{...} |
NewerOlder