-
-
Notifications
You must be signed in to change notification settings - Fork 134
ProgressDialog CircularProgressIndicator stops animation when await future #47
Comments
@bobosette , please use |
Sorry but also if I use await pr.show() I have the same issue |
@bobosette did you update to the latest version v1.2.2 |
yes but nothing changes |
Can you post sample code along with the method where you're writing it? |
my onTap:
the future:
|
where did you write the initialization of |
Inside a drawer item! When data are loaded a new page is opened
Il Gio 16 Apr 2020, 19:40 Mohammad Fayaz <[email protected]> ha
scritto:
… where did you write the initialization of pr ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#47 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADEWB4NQ56M6NYYMXFTWGN3RM47HPANCNFSM4MES2G7Q>
.
|
Sorry, I didn't get your issue. If possible please post whole import 'package:flutter/material.dart';
import 'dart:async';
class Test extends StatefulWidget {
@override
_TestState createState() => _TestState();
}
class _TestState extends State<Test> {
ProgressDialog pr;
void loadData() async{
await pr.show();
// run your load operation here
await pr.hide();
}
@override
Widget build(BuildContext context) {
pr = ProgressDialog(context);
loadData();
return Container();
}
}
|
What do u thing it could be??
Il Gio 16 Apr 2020, 19:46 Mohammad Fayaz <[email protected]> ha
scritto:
… Sorry, I didn't get your issue
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#47 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADEWB4J24TGKZXWQWRIX4LDRM4773ANCNFSM4MES2G7Q>
.
|
How can I reproduce the issue if you're not proving me basic code snippet |
Sorry I didn't read the all mail and I lost the last part of the message.
|
Hi @fayaz07. some news?? Didn't find anything?? |
@bobosette Can you please give me a shorter version of your code, that involves just the |
Hi dude.... the problem wasn't the progress dialog, but the function that
is heavy....the only way is running that using compute()...
Il Sab 9 Mag 2020, 09:47 Mohammad Fayaz <[email protected]> ha
scritto:
… @bobosette <https://github.com/bobosette> Can you please give me a
shorter version of your code, that involves just the progressDialog, stuff
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#47 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADEWB4K3CTA3ZJIRZ37FL3LRQUDAZANCNFSM4MES2G7Q>
.
|
Thanks, I am closing the issue now. Feel free to reopen for more questions |
Hi everybody. I have this problem with progressdailog: I have to load a big txt file (30mb) and I want to show the dialog till is loaded, but when I tap on the button the dialog starts showing and after 1 second the circularprogressindicator stops his animation; when the file is loaded (it takes almost 30 sec) the dialog hides correctly. How can I fix that?
Here is my code, the future:
Future<PatData> getPatData(String path) async { patData = await dataManager.getData(await file.readFile(path)); return patData; }
and the onTap:
pr.show().then((onValue) { getPatData(dataPath).then((value) { pr.hide(); Navigator.push( context, MaterialPageRoute( builder: (context) => GraphPage( patData: value, )), ); }); });
Can somebody help me?
Thank u!!!!
The text was updated successfully, but these errors were encountered: