Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rares45 committed Jul 28, 2022
1 parent 845c811 commit 3f9b60f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class MyApp extends StatelessWidget {
subtitle: const Text('This is the second option after a divider'),
showSubtitleOnDetails: true,
detailsListChildBuilder: (BuildContext context, int index) =>
const SizedBox(
const SizedBox(
height: double.maxFinite,
child: Center(
child: Text('A centered object'),
Expand All @@ -53,4 +53,4 @@ class MyApp extends StatelessWidget {
),
);
}
}
}
3 changes: 2 additions & 1 deletion lib/src/details_items.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ class MasterDetailFlowItem extends MasterDetailFlowItemBase {
this.trailing,
this.detailsChildrenCount,
this.key,
}) : assert(detailsChildrenCount == null || detailsChildrenCount >= 0, 'detailsChildren must not be null and have a length bigger than zero'),
}) : assert(detailsChildrenCount == null || detailsChildrenCount >= 0,
'detailsChildren must not be null and have a length bigger than zero'),
super(
selectable: true,
);
Expand Down
8 changes: 4 additions & 4 deletions test/master_detail_flow_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:master_detail_flow/master_detail_flow.dart';
void main() {
testWidgets(
'MasterDetailFlow tester',
(WidgetTester tester) async {
(WidgetTester tester) async {
final Key listTileKey1 = GlobalKey();
final Key listTileKey2 = GlobalKey();

Expand All @@ -16,7 +16,7 @@ void main() {
MasterDetailFlowItem(
title: const Text('KeyOne'),
detailsListChildBuilder: (BuildContext context, int index) =>
const Text(
const Text(
'Key One Details',
),
detailsChildrenCount: 1,
Expand All @@ -25,7 +25,7 @@ void main() {
MasterDetailFlowItem(
title: const Text('KeyTwo'),
detailsListChildBuilder: (BuildContext context, int index) =>
const Text(
const Text(
'Key Two Details',
),
detailsChildrenCount: 2,
Expand All @@ -45,7 +45,7 @@ void main() {
expect(find.text('Key One Details'), findsNothing);
expect(find.text('Key Two Details'), findsNothing);

if(secondTile) {
if (secondTile) {
await tester.tap(find.byKey(listTileKey2));
await tester.pumpAndSettle();

Expand Down

0 comments on commit 3f9b60f

Please sign in to comment.