Skip to content

Conversation

@Potatomonsta
Copy link
Contributor

Description

added StacSnackBarAction, StacMultiAction, StacModalBottomSheetAction, StacDelayAction, StacDialogAction

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

-StacSnackBarAction
-StacMultiAction
-StacModalBottomSheetAction
-StacDelayAction
-StacDialogAction
@divyanshub024 divyanshub024 changed the base branch from dev to dv/stac-export August 22, 2025 04:47
import 'package:stac_framework/stac_framework.dart';

import 'stac_snack_bar.dart';
// Types are parsed via extensions in type_parser.dart
Copy link
Member

Choose a reason for hiding this comment

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

Do we 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.

removed

Comment on lines 1410 to 1420
extension StacSnackBarActionParser on StacSnackBarAction {
SnackBarAction parse(BuildContext context) {
return SnackBarAction(
textColor: textColor?.toColor(context),
disabledTextColor: disabledTextColor?.toColor(context),
backgroundColor: backgroundColor?.toColor(context),
disabledBackgroundColor: disabledBackgroundColor?.toColor(context),
label: label,
onPressed: () => onPressed.parse(context),
);
}
Copy link
Member

Choose a reason for hiding this comment

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

Should this be in type or in action_parser?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

should be in its own parser ig


part 'stac_snack_bar_action.g.dart';

@JsonSerializable()
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 add documentation as well?


part 'stac_snack_bar.g.dart';

@JsonSerializable()
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 add documentation as well?


part 'stac_multi_action.g.dart';

@JsonSerializable()
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 add documentation as well?

Comment on lines 22 to 27
this.isScrollControlled = false,
this.useRootNavigator = false,
this.isDismissible = true,
this.enableDrag = true,
this.showDragHandle,
this.useSafeArea = false,
Copy link
Member

Choose a reason for hiding this comment

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

We should define the default values in parsers

Comment on lines 14 to 17
this.barrierDismissible = true,
this.barrierColor,
this.barrierLabel,
this.useSafeArea = true,
Copy link
Member

Choose a reason for hiding this comment

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

Please define default values in parser


@JsonSerializable()
class StacDelayAction extends StacAction {
const StacDelayAction({this.milliseconds = 1000});
Copy link
Member

Choose a reason for hiding this comment

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

Please define default values in parser

@divyanshub024 divyanshub024 merged commit 02e86c4 into dv/stac-export Aug 22, 2025
4 checks passed
@divyanshub024 divyanshub024 deleted the p2-widgets branch August 22, 2025 15:48
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.

3 participants