Skip to content

Commit

Permalink
Merge pull request #164 from woltapp/change-default-top-bar-clip
Browse files Browse the repository at this point in the history
Change Default Clip Behavior to antiAliasWithSaveLayer to fix Top Bar rendering issue
  • Loading branch information
ulusoyca committed Mar 14, 2024
2 parents b5c5f24 + fee15cc commit bf42933
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/src/theme/wolt_modal_sheet_default_theme_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class WoltModalSheetDefaultThemeData extends WoltModalSheetThemeData {

/// Overrides the default value for [WoltModalSheet] clipBehavior.
///
/// If null, [WoltModalSheet] uses [Clip.none].
/// Defaults to [Clip.antiAliasWithSaveLayer].
@override
Clip get clipBehavior => Clip.antiAlias;
Clip get clipBehavior => Clip.antiAliasWithSaveLayer;
}
2 changes: 1 addition & 1 deletion lib/src/theme/wolt_modal_sheet_theme_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class WoltModalSheetThemeData extends ThemeExtension<WoltModalSheetThemeData> {

/// Overrides the default value for [WoltModalSheet] clipBehavior.
///
/// If null, [WoltModalSheet] uses [Clip.antiAlias].
/// If null, [WoltModalSheet] uses [Clip.antiAliasWithSaveLayer].
final Clip? clipBehavior;

/// The default value for [WoltModalSheet] scrollPhysics in the main content.
Expand Down

0 comments on commit bf42933

Please sign in to comment.