Code Monkey home page Code Monkey logo

async_redux_core's Introduction

pub package

async_redux_core

This is the core Dart-only package for the async_redux package.

In your Flutter app:

  • Do NOT include this core package directly.

    Instead, go to the async_redux package which already exports this core code, plus provides Flutter related code.

In your Dart server or Dart-only code:

  • For the moment, this Dart-only package simply contains the UserException class, and nothing more.

  • If you are creating code for a Dart server (backend) like Celest, or developing some Dart-only package that does not depend on Flutter, then you can use this package directly:

    import 'package:async_redux_core/async_redux_core.dart';
    

    Note: When using Celest, this is especially useful for throwing UserException in your backend code. Celest will make sure to throw that exception in the frontend. As long as the Celest cloud function is called inside redux actions, Async Redux will display the exception message to the user in a dialog (or other UI element that you can customize). This can also be used with package i18n_extension_core to make sure the error message gets translated to the user's language. For example: UserException('The password you typed is invalid'.i18n); in the backend, will reach the frontend already translated as UserException('La contraseña que ingresaste no es válida') if the user device is in Spanish.

Documentation

Go to async_redux to read the docs.


Marcelo Glasberg

https://github.com/marcglasberg
https://twitter.com/glasbergmarcelo
https://stackoverflow.com/users/3411681/marcg
https://medium.com/@marcglasberg

The Flutter packages I've authored:

My Medium Articles:

My article in the official Flutter documentation:

async_redux_core's People

Contributors

marcglasberg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.