Skip to content

Instantly share code, notes, and snippets.

#include "Generated.xcconfig"
FLUTTER_TARGET=lib/main_development.dart
{
"version": "0.2.0",
"configurations": [
{
"name": "Development",
"request": "launch",
"type": "dart",
"program": "lib/main_development.dart",
"args": [
"--flavor",
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(
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');
}
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));
import {
call,
put,
race,
select,
take,
takeLatest
} from 'redux-saga/effects';
import actionGenerators from '../../../creators/actionGenerators';
import React, { Component } from "react";
import {
View,
Button
} from 'react-native';
import { connect } from 'react-redux';
import actionGenerators from "../../../redux/actionGenerators";
@connect(null, ({
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({
export default {
AUTH: [
'REGISTER',
'LOGIN',
'FORGOT_PASSWORD',
'RESET_PASSWORD',
'LOGOUT'
]
};
import { createActions } from 'redux-actions';
import groupActions from './groupActions'
const processAction = {
START: ()=>{...},
CANCEL: ()=>{...},
SUCCEED: ()=>{...},
FAIL: ()=>{...},
CLEAR: ()=>{...}