adamjohnlea / flutter-login-with-bloc-pattern Goto Github PK
View Code? Open in Web Editor NEWA new Flutter project featuring a faked authentication interface to demonstrate validation. Implemented with BloC pattern.
A new Flutter project featuring a faked authentication interface to demonstrate validation. Implemented with BloC pattern.
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
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
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
hello sir, why we need a provider?
Could you explain that?
thx sir
Dispose() inside the bloc class is never called. Potential memory leak.
i have error in class provider
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.