From bfcfe6a59c2e32c15df75c9a7d427cd13858d7c6 Mon Sep 17 00:00:00 2001 From: Cagatay Ulusoy Date: Tue, 14 Nov 2023 11:09:10 +0200 Subject: [PATCH] Use super for constructor parameters in WoltModalSheet --- lib/src/modal_page/wolt_modal_sheet_page.dart | 46 ++++++------------- 1 file changed, 15 insertions(+), 31 deletions(-) diff --git a/lib/src/modal_page/wolt_modal_sheet_page.dart b/lib/src/modal_page/wolt_modal_sheet_page.dart index 4a98e373..49defb90 100644 --- a/lib/src/modal_page/wolt_modal_sheet_page.dart +++ b/lib/src/modal_page/wolt_modal_sheet_page.dart @@ -47,37 +47,21 @@ class WoltModalSheetPage extends SliverWoltModalSheetPage { super.pageTitle, super.navBarHeight, super.topBarTitle, - Widget? heroImage, - double? heroImageHeight, - Color? backgroundColor, - bool? hasSabGradient, - Color? sabGradientColor, - bool? enableDrag, - bool forceMaxHeight = false, - bool? isTopBarLayerAlwaysVisible, - bool? hasTopBarLayer, - ScrollController? scrollController, - Widget? stickyActionBar, - Widget? leadingNavBarWidget, - Widget? trailingNavBarWidget, - Widget? topBar, - }) : super( - mainContentSlivers: [SliverToBoxAdapter(child: child)], - heroImage: heroImage, - heroImageHeight: heroImageHeight, - backgroundColor: backgroundColor, - hasSabGradient: hasSabGradient, - enableDrag: enableDrag, - sabGradientColor: sabGradientColor, - forceMaxHeight: forceMaxHeight, - isTopBarLayerAlwaysVisible: isTopBarLayerAlwaysVisible, - hasTopBarLayer: hasTopBarLayer, - scrollController: scrollController, - stickyActionBar: stickyActionBar, - leadingNavBarWidget: leadingNavBarWidget, - trailingNavBarWidget: trailingNavBarWidget, - topBar: topBar, - ); + super.heroImage, + super.heroImageHeight, + super.backgroundColor, + super.hasSabGradient, + super.sabGradientColor, + super.enableDrag, + super.forceMaxHeight = false, + super.isTopBarLayerAlwaysVisible, + super.hasTopBarLayer, + super.scrollController, + super.stickyActionBar, + super.leadingNavBarWidget, + super.trailingNavBarWidget, + super.topBar, + }) : super(mainContentSlivers: [SliverToBoxAdapter(child: child)]); WoltModalSheetPage copyWith({ Widget? pageTitle,