Skip to content

Conversation

@Potatomonsta
Copy link
Contributor

Description

added StacDrawer, StacDefaultTabController, StacPageView, StacTab, StacTabBarStac, TabViewParser and required enums

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Code refactor
  • Build configuration change
  • Documentation
  • Chore

@divyanshub024
Copy link
Member

@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(),
Copy link
Member

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?

Copy link
Contributor Author

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

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

Copy link
Contributor Author

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,
Copy link
Member

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.

Copy link
Contributor Author

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: () {
Copy link
Member

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.

Copy link
Contributor Author

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:
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@divyanshub024 divyanshub024 merged commit ef098ea into dv/stac-export Aug 18, 2025
4 checks passed
@divyanshub024 divyanshub024 deleted the p2-widgets branch August 18, 2025 12:19
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.

2 participants