Skip to content

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Conversation

aktxyz
Copy link
Contributor

@aktxyz aktxyz commented May 16, 2025

this seems to work, the loadingWidget support was already in the NetowrkWidget, just not exposed via the json model

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@@ -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;
Copy link
Member

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?

Copy link
Contributor Author

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

@divyanshub024
Copy link
Member

Hey @aktxyz!! Can you check the formatting? The format checks are failing.
Also, please sign the CLA.

@aktxyz
Copy link
Contributor Author

aktxyz commented May 16, 2025

Hey @aktxyz!! Can you check the formatting? The format checks are failing. Also, please sign the CLA.

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

@divyanshub024
Copy link
Member

Yup, you are on the right track. Keep going 💯

@divyanshub024
Copy link
Member

Hey @aktxyz!! Any update on this PR? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants