Skip to content

Commit

Permalink
style: flutter format
Browse files Browse the repository at this point in the history
  • Loading branch information
juliansteenbakker committed Nov 12, 2021
1 parent 2c2e7b4 commit ac451d7
Showing 1 changed file with 42 additions and 43 deletions.
85 changes: 42 additions & 43 deletions lib/src/settings_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ enum Position {
none,
}


abstract class AbstractTile extends StatelessWidget {
const AbstractTile({Key? key}) : super(key: key);
}
Expand Down Expand Up @@ -47,54 +46,54 @@ class SettingsTile extends AbstractTile {

final cupertinoKey = GlobalKey<CupertinoSettingsItemState>();

SettingsTile({
Key? key,
this.title,
this.titleWidget,
this.titleMaxLines,
this.subtitle,
this.subtitleMaxLines,
this.leading,
this.trailing,
this.subtitleWidget,
this.iosChevron = defaultCupertinoForwardIcon,
this.iosChevronPadding = defaultCupertinoForwardPadding,
@Deprecated('Use onPressed instead') this.onTap,
this.titleTextStyle,
this.subtitleTextStyle,
this.enabled = true,
this.onPressed,
this.switchActiveColor,
this.platform,
this.theme,
this.position
}) : _tileType = _SettingsTileType.simple,
SettingsTile(
{Key? key,
this.title,
this.titleWidget,
this.titleMaxLines,
this.subtitle,
this.subtitleMaxLines,
this.leading,
this.trailing,
this.subtitleWidget,
this.iosChevron = defaultCupertinoForwardIcon,
this.iosChevronPadding = defaultCupertinoForwardPadding,
@Deprecated('Use onPressed instead') this.onTap,
this.titleTextStyle,
this.subtitleTextStyle,
this.enabled = true,
this.onPressed,
this.switchActiveColor,
this.platform,
this.theme,
this.position})
: _tileType = _SettingsTileType.simple,
onToggle = null,
switchValue = null,
assert(titleMaxLines == null || titleMaxLines > 0),
assert(subtitleMaxLines == null || subtitleMaxLines > 0),
super(key: key);

SettingsTile.switchTile({
Key? key,
this.title,
this.titleWidget,
this.titleMaxLines,
this.subtitle,
this.subtitleMaxLines,
this.leading,
this.enabled = true,
this.trailing,
this.subtitleWidget,
required this.onToggle,
required this.switchValue,
this.titleTextStyle,
this.subtitleTextStyle,
this.switchActiveColor,
this.platform,
this.theme,
this.position
}) : _tileType = _SettingsTileType.switchTile,
SettingsTile.switchTile(
{Key? key,
this.title,
this.titleWidget,
this.titleMaxLines,
this.subtitle,
this.subtitleMaxLines,
this.leading,
this.enabled = true,
this.trailing,
this.subtitleWidget,
required this.onToggle,
required this.switchValue,
this.titleTextStyle,
this.subtitleTextStyle,
this.switchActiveColor,
this.platform,
this.theme,
this.position})
: _tileType = _SettingsTileType.switchTile,
onTap = null,
onPressed = null,
iosChevron = null,
Expand Down

0 comments on commit ac451d7

Please sign in to comment.