Skip to content

Commit

Permalink
Document and clean up the constants (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpnurmi committed Oct 23, 2022
1 parent a50f40a commit 43f4fd8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
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

0 comments on commit 43f4fd8

Please sign in to comment.