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

Document and clean up the constants #316

Merged
merged 1 commit into from
Oct 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 11 additions & 3 deletions lib/src/constants.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
/// The recommended padding around page content in Yaru applications.
const kYaruPagePadding = 20.0;
const kYaruDialogTitleHeight = 72.0;
const kYaruDialogTitlePadding = 0.0;
const kYaruPageWidth = 500.0;

/// The default height of [YaruTitleBar].
const kYaruTitleBarHeight = 72.0;

/// The default border radius for Yaru-style containers.
const kYaruContainerRadius = 8.0;

/// The default border radius for Yaru-style buttons.
const kYaruButtonRadius = 6.0;

/// The default breakpoint width [YaruMasterDetailPage] uses for switching
/// between portrait and landscape modes.
const kYaruMasterDetailBreakpoint = 620.0;
2 changes: 1 addition & 1 deletion lib/src/controls/yaru_title_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class YaruTitleBar extends StatelessWidget {
automaticallyImplyLeading: false,
title: title,
centerTitle: centerTitle,
toolbarHeight: kYaruDialogTitleHeight,
toolbarHeight: kYaruTitleBarHeight,
backgroundColor: Colors.transparent,
titleTextStyle: Theme.of(context).dialogTheme.titleTextStyle,
actions: [
Expand Down