Open rohanfalcon opened 6 days ago
@override build(BuildContext context) { return Scaffold( body: Center ( child: FutureBuilder<String> ( future: _onValidate(context) , builder: (context,snapshot) { if (snapshot.connectionState == ConnectionState.waiting) { return const CircularProgressIndicator(); // Loading indicator } else if (snapshot.hasError) { return Text('Error: ${snapshot.error}'); } else { return Text(snapshot.data ?? 'No data'); // Display the data } }
New widget to be launched from a future
error after widget launched
@rohanfalcon What assertion failure are you getting ? Can you provide entire error log ? Also, provide complete runnable code sample along with flutter doctor -v.
flutter doctor -v
Steps to reproduce
Expected results
New widget to be launched from a future
Actual results
error after widget launched
Code sample
Code sample
```dart [Paste your code here] ```Screenshots or Video
Screenshots / Video demonstration
[Upload media here]Logs
Logs
```console [Paste your logs here] ```Flutter Doctor output
Doctor output
```console [Paste your output here] ```