Skip to content

Commit e36724f

Browse files
authored
Merge pull request #2 from ErmolaevID/main
Rename seporator to separator
2 parents 241194b + 30845cf commit e36724f

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ JsonView.string(
8484
color: Colors.green,
8585
size: 20,
8686
),
87-
seporator: Padding(
87+
separator: Padding(
8888
padding: EdgeInsets.symmetric(horizontal: 8.0),
8989
child: Icon(
9090
Icons.arrow_right_alt_outlined,

example/lib/examples/green_custom.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class JsonViewApp extends StatelessWidget {
2222
child: JsonView.string(
2323
// '{"author":{"name": "Stas", "lastName": "Ilin", "githubLogin": "Frezyx", "age": 19, "man": true, "height": 186.5}}',
2424
'''{
25-
"users": {
25+
"users": {
2626
"sammy" : {
2727
"username" : "SammyShark",
2828
"location" : "Indian Ocean",
@@ -80,7 +80,7 @@ class JsonViewApp extends StatelessWidget {
8080
color: Colors.green,
8181
size: 20,
8282
),
83-
seporator: Padding(
83+
separator: Padding(
8484
padding: EdgeInsets.symmetric(horizontal: 8.0),
8585
child: Icon(
8686
Icons.arrow_right_alt_outlined,

lib/src/theme/json_view_theme.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class JsonViewTheme {
1010
this.closeIcon = const Icon(Icons.arrow_drop_up, size: 18),
1111
this.openIcon = const Icon(Icons.arrow_drop_down, size: 18),
1212
this.errorWidget = const Text('error'),
13-
this.seporator = const Text(' : '),
13+
this.separator = const Text(' : '),
1414
this.loadingWidget = const CircularProgressIndicator(),
1515
});
1616

@@ -40,7 +40,7 @@ class JsonViewTheme {
4040
final Widget errorWidget;
4141

4242
/// Key and value separator widget
43-
final Widget seporator;
43+
final Widget separator;
4444

4545
/// When loading data from a file, (web in future)
4646
/// this widget will be shown at the time of processing

lib/src/widgets/json_closed_ui_item.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ClosedJsonObjectItem extends StatelessWidget {
2828
keyName ?? '',
2929
style: jsonViewTheme.keyStyle,
3030
),
31-
if (keyName != null) jsonViewTheme.seporator,
31+
if (keyName != null) jsonViewTheme.separator,
3232
if (isList)
3333
Text(
3434
'Array<$type>[${count ?? 0}]',

lib/src/widgets/json_ui_item.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class JsonItem extends StatelessWidget {
2828
Row(
2929
children: [
3030
Text(entry.key, style: jsonViewTheme.keyStyle),
31-
jsonViewTheme.seporator,
31+
jsonViewTheme.separator,
3232
],
3333
),
3434
valueWidget
@@ -42,7 +42,7 @@ class JsonItem extends StatelessWidget {
4242
entry.key,
4343
style: jsonViewTheme.keyStyle,
4444
),
45-
jsonViewTheme.seporator,
45+
jsonViewTheme.separator,
4646
valueWidget
4747
],
4848
);

0 commit comments

Comments
 (0)