Skip to content

Commit 7d52932

Browse files
chore: Update to use the latest lint rules (#62)
1 parent 996ddca commit 7d52932

File tree

11 files changed

+14
-12
lines changed

11 files changed

+14
-12
lines changed

analysis_options.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
include: package:zds_analysis/analysis_options_lib.yaml
22
linter:
33
rules:
4-
use_build_context_synchronously: false
4+
use_build_context_synchronously: false
5+
document_ignores: false

lib/src/components/atoms/border_clipper.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import 'package:flutter/material.dart';
1111
/// If any of the insets (parameters) change, the clipping area will be recalculated.
1212
///
1313
/// # Example
14-
/// ```
14+
/// ```dart
1515
/// ZdsBorderClipper clipper = ZdsBorderClipper(
1616
/// top: 10,
1717
/// bottom: 10,

lib/src/components/atoms/shake_animation.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ class ZdsShakeAnimation extends StatefulWidget {
5757
final Widget child;
5858

5959
/// Horizontal shake offset
60-
/// ...<- [Widget] ->...
6160
final double shakeOffset;
6261

6362
/// No of repetitions.

lib/src/components/molecules/date_range_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2050,7 +2050,7 @@ class _DayHeaders extends StatelessWidget {
20502050
///
20512051
/// Examples:
20522052
///
2053-
/// ```
2053+
/// ```none
20542054
/// ┌ [firsDayOfWeek] is 0 then its point to Sunday which is the first day of week in the US (en_US)
20552055
/// |
20562056
/// S M T W T F S <-- the returned list contains these widgets

lib/src/components/molecules/interval_time_picker.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,7 @@ class _RenderInputPadding extends RenderShiftedBox {
799799
);
800800
if (child != null) {
801801
final BoxParentData childParentData = child!.parentData! as BoxParentData;
802+
// Ignored as we need to set the offset whilst keeping childParentData as its own object.
802803
// ignore: cascade_invocations
803804
childParentData.offset = Alignment.center.alongOffset(size - child!.size as Offset);
804805
}

lib/src/components/organisms/quill_editor/material_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// Material Color Picker
22
3-
library material_colorpicker;
3+
library;
44

55
import 'package:flutter/foundation.dart';
66
import 'package:flutter/gestures.dart';

lib/src/utils/assets/icons.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Ignored as to not break other packages using this file.
12
// ignore_for_file: constant_identifier_names, public_member_api_docs
23

34
// To add new icons, follow the instructions in https://confluence.zebra.com/display/IDD/Internal+developer+resources

lib/src/utils/theme/theme_data.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ class ZdsThemeData {
373373
///
374374
/// [path] is the location of the JSON file.
375375
///
376-
/// Returns a Future that completes with a Map<String, dynamic> once the file has been loaded and decoded.
376+
/// Returns a Future that completes with a Map once the file has been loaded and decoded.
377377
/// If an error occurs during loading or decoding, it catches the exception and returns an empty Map.
378378
static Future<String> _readAsset(String path) async {
379379
try {
@@ -385,7 +385,7 @@ class ZdsThemeData {
385385

386386
/// Parses a JSON string and returns it as a Map.
387387
///
388-
/// The [jsonString] argument is a JSON string that will be parsed into a Map<String, dynamic>.
388+
/// The [jsonString] argument is a JSON string that will be parsed into a Map.
389389
///
390390
/// This method tries to decode the given JSON string. If an error occurs during decoding,
391391
/// it catches the exception and returns an empty Map.

lib/src/utils/tools/modifiers.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ extension RowLayout on Row {
406406
/// Center aligning row's children perfectly on the horizontal AND on the vertical axis
407407
/// when used in a vertical MultichildRenderObject.
408408
///
409-
/// ```
409+
/// ```none
410410
/// e.g. normal Column or ListView with rows inside
411411
/// 750000 187
412412
/// 245000 14501

lib/src/utils/tools/tab_navigator.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class ZdsSplitNavigator extends StatefulWidget {
8484
/// If no [ZdsSplitNavigatorState] ancestor is found, a [FlutterError] is thrown.
8585
///
8686
/// Usage:
87-
/// ```
87+
/// ```dart
8888
/// final ZdsSplitNavigatorState = ZdsSplitNavigatorState.of(context);
8989
/// ```
9090
///
@@ -238,10 +238,10 @@ class ZdsSplitNavigatorState extends State<ZdsSplitNavigator> with FrameCallback
238238
/// An integer value to keep track of the number of routes in the nested navigator.
239239
int routesCount = 0;
240240

241-
/// A GlobalKey<NavigatorState> used to access the nested navigator's state.
241+
/// A GlobalKey used to access the nested navigator's state.
242242
late GlobalKey<NavigatorState> navigatorKey;
243243

244-
/// A ValueNotifier<String> that holds the current route's name. By default, it is initialized
244+
/// A ValueNotifier that holds the current route's name. By default, it is initialized
245245
/// with ZdsSplitNavigator.emptyRoute.
246246
final ValueNotifier<String> currentRoute = ValueNotifier<String>(ZdsSplitNavigator.emptyRoute);
247247

0 commit comments

Comments
 (0)