Skip to content
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

Add theme extensions for wolt modal sheet #44

Merged
merged 1 commit into from
Aug 30, 2023
Merged

Conversation

ulusoyca
Copy link
Collaborator

@ulusoyca ulusoyca commented Aug 18, 2023

Adds theme extensions and fixes #9

theme_extensions.mov
playground.app.mov

@ulusoyca ulusoyca added the ThemeExtensions Theme extensions epic label Aug 18, 2023
@ulusoyca ulusoyca marked this pull request as ready for review August 19, 2023 10:49
@ulusoyca ulusoyca force-pushed the add-theme-extensions branch 3 times, most recently from d29ee26 to f5c2d72 Compare August 19, 2023 17:17
Comment on lines +136 to +143
extensions: const <ThemeExtension>[
WoltModalSheetThemeData(
heroImageHeight: _heroImageHeight,
topBarShadowColor: _lightThemeShadowColor,
modalBarrierColor: Colors.black54,
),
],
),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice!

@@ -93,7 +93,7 @@ class WoltModalSheetPage {
/// widget often serves as the close button, utilized to close the modal sheet. Together, these
/// widgets provide clear and intuitive navigational control, differentiating themselves from
/// the top bar by focusing specifically on directional navigation within the interface.
final double navigationBarHeight;
final double? navBarHeight;
Copy link
Collaborator

Choose a reason for hiding this comment

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

+1 for shorter yet clear name

Copy link
Collaborator

@TahaTesser TahaTesser left a comment

Choose a reason for hiding this comment

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

Excellent PR
LGTM

@ulusoyca ulusoyca merged commit bcd903d into main Aug 30, 2023
@ulusoyca ulusoyca deleted the add-theme-extensions branch August 30, 2023 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ThemeExtensions Theme extensions epic
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Top bar's elevation not customisable
2 participants