-
Notifications
You must be signed in to change notification settings - Fork 54
add loading child widget to networkWidget #251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
|
@@ -10,8 +10,8 @@ part 'stac_network_widget.g.dart'; | |||
abstract class StacNetworkWidget with _$StacNetworkWidget { | |||
const factory StacNetworkWidget({ | |||
required StacNetworkRequest request, | |||
Map<String, dynamic>? loading, | |||
}) = _StacNetworkWidget; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also add support for the error widget?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, will add to the PR, I already added it but was too lazy to test it so did not include
Hey @aktxyz!! Can you check the formatting? The format checks are failing. |
yes, will fix the formatting -- my default width is set higher than the 1928 IBM punch card standard :) I mainly wanted to check if this was on the right track. For the error option, I actually added that then realized I needed some http endpoint to respond with an error ! will do that also |
Yup, you are on the right track. Keep going 💯 |
Hey @aktxyz!! Any update on this PR? :) |
this seems to work, the loadingWidget support was already in the NetowrkWidget, just not exposed via the json model