Skip to content

Commit

Permalink
Expand remaining part of row in MacosListTile (#265)
Browse files Browse the repository at this point in the history
* Expand remaining part of row #264

* Increment to version 1.4.2
  • Loading branch information
jonsaw authored Jun 24, 2022
1 parent f6cb9cd commit a4e85c3
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 19 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [1.4.2]
* Fixes RenderFlex overflowed in `MacosListTile` [#264](https://github.com/GroovinChip/macos_ui/issues/264)

## [1.4.1+1]
* Update `pubspec.yaml` with `repository` and new `homepage` field.

Expand Down
40 changes: 22 additions & 18 deletions lib/src/layout/macos_list_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,26 +51,30 @@ class MacosListTile extends StatelessWidget {
children: [
if (leading != null) leading!,
SizedBox(width: leadingWhitespace),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
DefaultTextStyle(
style: MacosTheme.of(context).typography.headline.copyWith(
fontWeight: FontWeight.bold,
),
child: title,
),
if (subtitle != null)
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
DefaultTextStyle(
style:
MacosTheme.of(context).typography.subheadline.copyWith(
color: MacosTheme.brightnessOf(context).isDark
? MacosColors.systemGrayColor
: const MacosColor(0xff88888C),
),
child: subtitle!,
style: MacosTheme.of(context).typography.headline.copyWith(
fontWeight: FontWeight.bold,
),
child: title,
),
],
if (subtitle != null)
DefaultTextStyle(
style: MacosTheme.of(context)
.typography
.subheadline
.copyWith(
color: MacosTheme.brightnessOf(context).isDark
? MacosColors.systemGrayColor
: const MacosColor(0xff88888C),
),
child: subtitle!,
),
],
),
),
],
),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: macos_ui
description: Flutter widgets and themes implementing the current macOS design language.
version: 1.4.1+1
version: 1.4.2
homepage: "https://macosui.dev"
repository: "https://github.com/GroovinChip/macos_ui"

Expand Down

0 comments on commit a4e85c3

Please sign in to comment.