Skip to content

Commit cec3b0f

Browse files
author
RusKryzhanovskiy
committed
Format the code snippet, fix paddings in the README.md
1 parent f2cc7dd commit cec3b0f

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,26 @@ import 'package:settings_ui/settings_ui.dart';
2929

3030
## Basic Usage:
3131
```dart
32-
SettingsList(
33-
sections: [
34-
SettingsSection(
35-
title: Text('Common'),
36-
tiles: <SettingsTile>[
37-
SettingsTile.navigation(
38-
leading: Icon(Icons.language),
39-
title: Text('Language'),
40-
value: Text('English'),
41-
),
42-
SettingsTile.switchTile(
43-
onToggle: (value) {},
44-
initialValue: true,
45-
leading: Icon(Icons.format_paint),
46-
title: Text('Enable custom theme'),
47-
),
48-
],
49-
),
50-
],
51-
),
32+
SettingsList(
33+
sections: [
34+
SettingsSection(
35+
title: Text('Common'),
36+
tiles: <SettingsTile>[
37+
SettingsTile.navigation(
38+
leading: Icon(Icons.language),
39+
title: Text('Language'),
40+
value: Text('English'),
41+
),
42+
SettingsTile.switchTile(
43+
onToggle: (value) {},
44+
initialValue: true,
45+
leading: Icon(Icons.format_paint),
46+
title: Text('Enable custom theme'),
47+
),
48+
],
49+
),
50+
],
51+
),
5252
```
5353

5454
<br>
@@ -103,11 +103,12 @@ Here it is. The section tile. It displays the elements you want to show.
103103
| CustomSettingsTile | The main idea the same as for the `CustomSettingsSection`. You can put anything as a child inside your `SettingsSection`.
104104
| SettingsTile | I think that we need to discuss this deeper. See below for the details.
105105

106+
<br>
107+
<br>
108+
106109
### Settings tile
107110
The implementation of `AbstractSettingsTile`. It has a lot of fabric methods and parameters. Let's take a look.
108111

109-
<br>
110-
111112
| Constructor / Fabric method | Description |
112113
|--|--|
113114
| SettingsTile | Displays the default setting tile. Nothing special. |
@@ -119,7 +120,6 @@ The implementation of `AbstractSettingsTile`. It has a lot of fabric methods and
119120

120121
#### Now let's deal with all these parameters.
121122

122-
<br>
123123

124124
| Parameter | Description |
125125
|--|--|

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy