Skip to content

Commit

Permalink
YaruRow: enable by default (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpnurmi authored Oct 5, 2022
1 parent 8fd12d5 commit 62496a2
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ class _HomeState extends State<Home> {
),
],
),
enabled: true,
)
]),
iconData: YaruIcons.settings,
Expand Down
1 change: 0 additions & 1 deletion example/lib/pages/section_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class _SectionPageState extends State<SectionPage> {
width: sectionWidth,
children: [
YaruRow(
enabled: true,
trailingWidget: Text("Trailing Widget"),
actionWidget: Text("Action Widget"),
description: "Description",
Expand Down
1 change: 0 additions & 1 deletion example/lib/widgets/dummy_section.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class DummySection extends StatelessWidget {
),
children: [
YaruRow(
enabled: true,
trailingWidget: Text("Trailing Widget"),
actionWidget: Text("Action Widget"),
description: "Description",
Expand Down
1 change: 0 additions & 1 deletion example/lib/widgets/row_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class RowList extends StatelessWidget {
actionWidget: Text("Action Widget"),
leadingWidget: Icon(YaruIcons.audio),
description: "Description",
enabled: true,
),
itemCount: 20,
);
Expand Down
2 changes: 1 addition & 1 deletion lib/src/pages/rows/yaru_row.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class YaruRow extends StatelessWidget {
required this.trailingWidget,
this.description,
required this.actionWidget,
required this.enabled,
this.enabled = true,
this.width,
this.padding = const EdgeInsets.all(8.0),
this.mainAxisAlignment = MainAxisAlignment.spaceBetween,
Expand Down
2 changes: 0 additions & 2 deletions test/pages/rows/yaru_row_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ void main() {
theme: ThemeData(primarySwatch: Colors.red),
home: const Scaffold(
body: YaruRow(
enabled: true,
leadingWidget: Text('Foo Leading'),
actionWidget: Text('Foo Text'),
trailingWidget: Icon(Icons.add),
Expand All @@ -37,7 +36,6 @@ void main() {
theme: ThemeData(primarySwatch: Colors.red),
home: const Scaffold(
body: YaruRow(
enabled: true,
leadingWidget: null,
actionWidget: Text('Foo Text'),
trailingWidget: Icon(Icons.add),
Expand Down

0 comments on commit 62496a2

Please sign in to comment.