Giter Site home page Giter Site logo

adamjohnlea / flutter-login-with-bloc-pattern Goto Github PK

View Code? Open in Web Editor NEW
80.0 80.0 16.0 112 KB

A new Flutter project featuring a faked authentication interface to demonstrate validation. Implemented with BloC pattern.

Java 5.83% Objective-C 12.00% Dart 82.17%
dart dartlang flutter flutter-apps rxdart

flutter-login-with-bloc-pattern's Introduction

Hi there ๐Ÿ‘‹

flutter-login-with-bloc-pattern's People

Contributors

adamjohnlea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flutter-login-with-bloc-pattern's Issues

validation_issue

submit button is activated if the email is not correct not able to understand why?

i am new to bloc pattern

the use case is
enter valid email and password
now delete @ from email
enter anything again in password field the submit button gets enable which is wrong because email is not valid.

please let me know how to fix it

Thanks

Sign in error when use Navigator push

Example:
In MaterialApp i add authenticate screen. Then i navigation to login screen from authenticate screen => App occurs error log in though email and password are validated

Login button is not getting activated when used in routes

I am creating a new app with navigation declared on the material app

class App extends StatelessWidget {
  Widget build(BuildContext context) {
    return  MaterialApp(
        title: 'Log Me In!',
        routes: {
          '/':(context) => Provider(
            child: Scaffold(
              body: LoginScreen(),
            ),
          )
        },
       );
  }
}

If I use the above code Login button is not getting activated.
I tried debugging, but
Stream get submitValid => Observable.combineLatest2(email, password, (e, p) => true);
submitValid stream is always empty.

If I am not using the navigation and it works fine as expected.

I am new to flutter, I might be missing something here. So any help in finding the issue will help me a lot.

thanks in advance

Provider

hello sir, why we need a provider?

Could you explain that?

thx sir

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.