arnold-parge / screen_loader Goto Github PK
View Code? Open in Web Editor NEWEasy to use mixin ScreenLoader, which will handle the loading on the screen. You can customize the loading as well, check below how it is done.
License: MIT License
Easy to use mixin ScreenLoader, which will handle the loading on the screen. You can customize the loading as well, check below how it is done.
License: MIT License
I have issues migrating to last version, i can't know when the screen is loading, in previous version it has isLoading
variable
Currently, the loader can be shown only in a StatefulWidget
. Make it available for StatelessWidget
too. Opportunity to use Stream Mixin here.
Can any one help me here , Looks performFuture is not working properly inside didChangeDependencies
Future<dynamic> _loadUser() {
return Provider.of<Users>(context, listen: false).fetchUsers();
}
@override
void didChangeDependencies() async {
if (_isInit) {
_isInit = false;
await this.performFuture(_loadUser); // This line does not show loader
await this.performFuture(NetworkService.getData); // This line show loader
}
super.didChangeDependencies();
}
class NetworkService {
static` Future getData() async {
return await Future.delayed(Duration(seconds: 2));
}
}
Any news about a null safety version of this package @arnold-parge ?
I have a MainView with a TabBarView, and after calling the performFuture inside one of the tabs I can still change tabs
I just tried out this widget, and I noticed that if I throw an exception inside the method used in performFuture()
, the loading screen never disappears. In my case, I don't want to catch the exception inside the method.
Is it possible to make the loader disappear in case the method throws an exception? Or would it be possible to add this feature (perhaps with an optional bool hideOnError
flag in performFuture()
)?
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.