Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Defines a default set of lint rules enforced for
# projects at Google. For details and rationale,
# see https://github.com/dart-lang/pedantic#enabled-lints.
include: package:pedantic/analysis_options.yaml

# For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
# Uncomment to specify additional rules.
# linter:
# rules:
# - camel_case_types

analyzer:
strong-mode:
implicit-casts: false
4 changes: 2 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class _MyHomePageState extends State<MyHomePage> {
true
]
}''';
jsonObj = jsonDecode(testString);
jsonObj = jsonDecode(testString) as Map<String, dynamic>;
}

@override
Expand All @@ -167,7 +167,7 @@ class _MyHomePageState extends State<MyHomePage> {
child: SingleChildScrollView(
// Center is a layout widget. It takes a single child and positions it
// in the middle of the parent.
child: JsonViewerWidget(jsonObj)
child: JsonViewerWidget(jsonObj, false)
),
);
}
Expand Down
Loading