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

YaruRow: enable by default #231

Merged
merged 1 commit into from
Oct 5, 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
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