-
-
Couldn't load subscription status.
- Fork 79
DSL Widgets : added StacDrawer, StacDefaultTabController, StacPageView, StacTab, StacTabBarStac, TabViewParser #335
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
Conversation
2cb8aa1 to
eb5591a
Compare
|
@Potatomonsta PR checks are failing. Please check it. |
| initialIndex: model.initialIndex, | ||
| child: Stac.fromJson(model.child, context) ?? const SizedBox(), | ||
| initialIndex: model.initialIndex ?? 0, | ||
| child: model.child.parse(context) ?? const SizedBox(), |
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.
Duration field is missing here. Can we add stac duration?
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.
done
| @@ -1,11 +1,11 @@ | |||
| import 'package:flutter/material.dart'; | |||
| import 'package:stac/src/framework/framework.dart'; | |||
| // Removed unused framework import | |||
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.
We don't need this comment
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.
done
| itemCount: widget.model.children.length, | ||
| dragStartBehavior: widget.model.dragStartBehavior, | ||
| allowImplicitScrolling: widget.model.allowImplicitScrolling, | ||
| itemCount: widget.model.children?.length ?? 0, |
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.
item count doesn't need default 0 value. It can be nullable.
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.
done
| indicator: model.indicator?.parse(context), | ||
| indicatorSize: model.indicatorSize, | ||
| labelColor: model.labelColor.toColor(context), | ||
| indicatorSize: () { |
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.
This should be part of the parse method.
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.
done
| dividerColor: model.dividerColor.toColor(context), | ||
| tabAlignment: () { | ||
| switch (model.tabAlignment) { | ||
| case StacTabAlignment.center: |
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.
This should be part of the parse method.
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.
done
Description
added StacDrawer, StacDefaultTabController, StacPageView, StacTab, StacTabBarStac, TabViewParser and required enums
Type of Change