Skip to content

Commit a368dab

Browse files
committed
Fix comments
1 parent 4573a54 commit a368dab

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

packages/flutter_adaptive_scaffold/example/test/adaptive_layout_demo_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ void main() {
297297
);
298298

299299
testWidgets(
300-
'when view in extra large screen, navigation rail must be visible as per theme data values.',
300+
'when view in extraLarge screen, navigation rail must be visible as per theme data values.',
301301
(WidgetTester tester) async {
302302
final Finder primaryNavigationExtraLarge = find.byKey(
303303
const Key('Primary Navigation ExtraLarge'),

packages/flutter_adaptive_scaffold/example/test/adaptive_scaffold_demo_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void main() {
3535

3636
testWidgets('displays correct item of config based on screen width',
3737
(WidgetTester tester) async {
38-
//Small
38+
// Small
3939
await updateScreen(300, tester);
4040
await tester.pumpAndSettle();
4141
expect(smallBody, findsOneWidget);

packages/flutter_adaptive_scaffold/lib/src/adaptive_layout.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ enum _SlotIds {
5959
/// builder: (_) => AdaptiveScaffold.toNavigationRail(destinations: destinations),
6060
/// ),
6161
/// Breakpoints.mediumLarge: SlotLayout.from(
62-
/// key: const Key('Primary Navigation Expanded'),
62+
/// key: const Key('Primary Navigation MediumLarge'),
6363
/// inAnimation: leftOutIn,
6464
/// builder: (_) => AdaptiveScaffold.toNavigationRail(extended: true, destinations: destinations),
6565
/// ),

packages/flutter_adaptive_scaffold/lib/src/adaptive_scaffold.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class AdaptiveScaffold extends StatefulWidget {
173173
/// empty.
174174
final WidgetBuilder? largeBody;
175175

176-
/// Widget to be displayed in the body slot at the extra large breakpoint.
176+
/// Widget to be displayed in the body slot at the extraLarge breakpoint.
177177
///
178178
/// If nothing is entered for this property, then the default [body] is
179179
/// displayed in the slot. If null is entered for this slot, the slot stays
@@ -209,7 +209,7 @@ class AdaptiveScaffold extends StatefulWidget {
209209
/// empty.
210210
final WidgetBuilder? largeSecondaryBody;
211211

212-
/// Widget to be displayed in the secondaryBody slot at the extra large
212+
/// Widget to be displayed in the secondaryBody slot at the extraLarge
213213
/// breakpoint.
214214
///
215215
/// If nothing is entered for this property, then the default [secondaryBody]
@@ -250,7 +250,7 @@ class AdaptiveScaffold extends StatefulWidget {
250250
/// Defaults to [Breakpoints.large].
251251
final Breakpoint largeBreakpoint;
252252

253-
/// The breakpoint defined for the extra large size, associated with ultra-wide
253+
/// The breakpoint defined for the extraLarge size, associated with ultra-wide
254254
/// features.
255255
///
256256
/// Defaults to [Breakpoints.extraLarge].

packages/flutter_adaptive_scaffold/lib/src/breakpoints.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ class Breakpoint {
146146
/// Returns a [Breakpoint] with the given constraints for an extraLarge screen.
147147
const Breakpoint.extraLarge({this.andUp = false, this.platform})
148148
: beginWidth = 1600,
149-
beginHeight = 900,
150149
endWidth = null,
150+
beginHeight = 900,
151151
endHeight = null;
152152

153153
/// A set of [TargetPlatform]s that the [Breakpoint] will be active on desktop.

packages/flutter_adaptive_scaffold/test/breakpoint_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void main() {
3737
expect(find.byKey(const Key('Breakpoints.largeMobile')), findsOneWidget);
3838
expect(find.byKey(const Key('Breakpoints.largeDesktop')), findsNothing);
3939

40-
// Do the same with an extra large layout on a mobile.
40+
// Do the same with an extraLarge layout on a mobile.
4141
await tester.pumpWidget(SimulatedLayout.extraLarge.slot(tester));
4242
await tester.pumpAndSettle();
4343
expect(
@@ -61,7 +61,7 @@ void main() {
6161
expect(find.byKey(const Key('Breakpoints.mediumDesktop')), findsOneWidget);
6262
expect(find.byKey(const Key('Breakpoints.mediumMobile')), findsNothing);
6363

64-
// Do the same with an mediumLarge layout on a desktop
64+
// Do the same with an mediumLarge layout on a desktop.
6565
await tester.pumpWidget(SimulatedLayout.mediumLarge.slot(tester));
6666
await tester.pumpAndSettle();
6767
expect(find.byKey(const Key('Breakpoints.mediumLargeDesktop')),

0 commit comments

Comments
 (0)