Skip to content

Commit

Permalink
made changes in the mini player bar
Browse files Browse the repository at this point in the history
  • Loading branch information
gokadzev committed Oct 6, 2022
1 parent 0ba2386 commit 8f22884
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions lib/ui/rootPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:just_audio/just_audio.dart';
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';
import 'package:musify/customWidgets/custom_animated_bottom_bar.dart';
import 'package:musify/customWidgets/marque.dart';
import 'package:musify/helper/flutter_toast.dart';
import 'package:musify/helper/version.dart';
import 'package:musify/main.dart';
Expand Down Expand Up @@ -199,25 +200,28 @@ class AppState extends State<Musify> {
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(
metadata!.title.toString().length > 15
? '${metadata!.title.toString().substring(0, 15)}...'
: metadata!.title.toString(),
style: TextStyle(
color: accent,
fontSize: 17,
fontWeight: FontWeight.w600,
MarqueeWidget(
direction: Axis.horizontal,
child: Text(
metadata!.title.toString(),
maxLines: 1,
style: TextStyle(
color: accent,
fontSize: 17,
fontWeight: FontWeight.w600,
),
),
),
Text(
metadata!.artist.toString().length > 15
? '${metadata!.artist.toString().substring(0, 15)}...'
: metadata!.artist.toString(),
style: TextStyle(
color: accent,
fontSize: 15,
MarqueeWidget(
direction: Axis.horizontal,
child: Text(
metadata!.artist.toString(),
style: TextStyle(
color: accent,
fontSize: 15,
),
),
)
),
],
),
),
Expand Down

0 comments on commit 8f22884

Please sign in to comment.