Skip to content

Commit

Permalink
ran dart format .
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaphasilor committed Nov 11, 2024
1 parent 854e111 commit 0f6e440
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class AddToPlaylistButton extends ConsumerStatefulWidget {

class _AddToPlaylistButtonState extends ConsumerState<AddToPlaylistButton> {
final _queueService = GetIt.instance<QueueService>();

@override
Widget build(BuildContext context) {
if (widget.item == null) {
Expand Down
55 changes: 25 additions & 30 deletions lib/components/AlbumScreen/track_list_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -478,41 +478,37 @@ class TrackListItemState extends ConsumerState<TrackListItem>
// brightness: Theme.of(context).brightness,
colorScheme: imageTheme.copyWith(
surfaceContainer: ref
.watch(colorThemeProvider)
.primary
.withOpacity(
Theme.of(context).brightness ==
Brightness.dark
? 0.35
: 0.3)
),
.watch(colorThemeProvider)
.primary
.withOpacity(
Theme.of(context).brightness ==
Brightness.dark
? 0.35
: 0.3)),
textTheme: Theme.of(context).textTheme.copyWith(
bodyLarge: Theme.of(context)
.textTheme
.bodyLarge
?.copyWith(
color: Color.alphaBlend(
(ref
.watch(
colorThemeProvider)
.secondary
.withOpacity(Theme.of(
context)
.brightness ==
Brightness
.light
? 0.5
(ref
.watch(colorThemeProvider)
.secondary
.withOpacity(Theme.of(
context)
.brightness ==
Brightness.light
? 0.5
: 0.1)),
Theme.of(context)
.textTheme
.bodyLarge
?.color ??
(Theme.of(context)
.brightness ==
Brightness.light
? Colors.black
: Colors.white))
),
Theme.of(context)
.textTheme
.bodyLarge
?.color ??
(Theme.of(context)
.brightness ==
Brightness.light
? Colors.black
: Colors.white))),
),
iconTheme: Theme.of(context).iconTheme.copyWith(
color: imageTheme.primary,
Expand Down Expand Up @@ -619,9 +615,8 @@ class TrackListItemTile extends StatelessWidget {

@override
Widget build(BuildContext context) {

final highlightTrack = isCurrentTrack && highlightCurrentTrack;

final bool secondRowNeeded = showArtists || showAlbum || showPlayCount;

final durationLabelFullHours =
Expand Down
4 changes: 1 addition & 3 deletions lib/components/PlayerScreen/feature_chips.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ class FeatureState {
),
);
}

for (var feature in configuration.features) {

for (var feature in configuration.features) {
// TODO this will likely be extremely outdated if offline, hide?
if (feature == FinampFeatureChipType.playCount &&
currentTrack?.baseItem?.userData?.playCount != null) {
Expand Down Expand Up @@ -182,7 +181,6 @@ class FeatureState {
);
}
}

}
return features;
}
Expand Down
3 changes: 2 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ void main() async {
Future<void> _setupEdgeToEdgeOverlayStyle() async {
if (Platform.isAndroid) {
await SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(systemNavigationBarColor: Colors.transparent));
SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
systemNavigationBarColor: Colors.transparent));
final binding = WidgetsFlutterBinding.ensureInitialized();
binding.addObserver(UIOverlaySetterObserver());
}
Expand Down
4 changes: 1 addition & 3 deletions lib/services/downloads_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,6 @@ class DownloadsService {
}

Future<void> addDefaultPlaylistInfoDownload() async {

String? downloadLocation =
FinampSettingsHelper.finampSettings.defaultDownloadLocation;
if (!FinampSettingsHelper.finampSettings.downloadLocationsMap
Expand All @@ -1240,8 +1239,7 @@ class DownloadsService {
await addDownload(
stub: DownloadStub.fromFinampCollection(
FinampCollection(type: FinampCollectionType.allPlaylistsMetadata)),
transcodeProfile:
DownloadProfile(
transcodeProfile: DownloadProfile(
transcodeCodec: FinampTranscodingCodec.original,
downloadLocationId: downloadLocation,
),
Expand Down
2 changes: 1 addition & 1 deletion lib/services/ui_overlay_setter_observer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ class UIOverlaySetterObserver extends WidgetsBindingObserver {
break;
}
}
}
}
1 change: 0 additions & 1 deletion lib/setup_logging.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,4 @@ Future<void> setupLogging() async {
startupLogger
.info("Web browser ${webInfo.userAgent} on ${webInfo.platform}");
}

}

0 comments on commit 0f6e440

Please sign in to comment.