diff --git a/.idea/dafl_music.iml b/.idea/dafl_music.iml
index 7d01c35..98db980 100644
--- a/.idea/dafl_music.iml
+++ b/.idea/dafl_music.iml
@@ -11,6 +11,48 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Sources/dafl_project_flutter/lib/views/pages/main/w_profile.dart b/Sources/dafl_project_flutter/lib/views/pages/main/w_profile.dart
index a8e0184..55baa53 100644
--- a/Sources/dafl_project_flutter/lib/views/pages/main/w_profile.dart
+++ b/Sources/dafl_project_flutter/lib/views/pages/main/w_profile.dart
@@ -1,3 +1,8 @@
+
+
+import 'package:text_scroll/text_scroll.dart';
+import 'package:scroll_loop_auto_scroll/scroll_loop_auto_scroll.dart';
+
import '../../../main.dart';
import '../../../model/music.dart';
import './w_settings.dart';
@@ -259,13 +264,28 @@ class _MainPageProfilState extends State {
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
- Text(
+ snapshot.data!['name'].length > 22?
+ SizedBox(width: 220,
+ child: ScrollLoopAutoScroll(
+ delayAfterScrollInput: Duration(seconds: 1),
+ delay: Duration(seconds: 1),
+ child: Text(
+ snapshot.data!['name'],
+ style: TextStyle(fontSize: 20,
+ color: Colors.white,
+ fontWeight: FontWeight.bold),
+ ),
+ duration: Duration(seconds: 100),
+ scrollDirection: Axis.horizontal,
+ ),)
+ :Text(
snapshot.data!['name'],
- style: const TextStyle(
- fontSize: 18,
- fontWeight: FontWeight.w500,
- color: Colors.white),
+ style: TextStyle(fontSize: 20,
+ color: Colors.white,
+ fontWeight: FontWeight.bold),
),
+
+
Text(
snapshot.data!['artist'],
style: const TextStyle(
@@ -398,4 +418,5 @@ class _MainPageProfilState extends State {
),
);
}
+
}
diff --git a/Sources/dafl_project_flutter/pubspec.lock b/Sources/dafl_project_flutter/pubspec.lock
index 0662299..3799d6e 100644
--- a/Sources/dafl_project_flutter/pubspec.lock
+++ b/Sources/dafl_project_flutter/pubspec.lock
@@ -106,6 +106,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.5"
+ fading_edge_scrollview:
+ dependency: transitive
+ description:
+ name: fading_edge_scrollview
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "3.0.0"
fake_async:
dependency: transitive
description:
@@ -322,6 +329,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
+ marquee:
+ dependency: "direct main"
+ description:
+ name: marquee
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.2.3"
matcher:
dependency: transitive
description:
@@ -483,6 +497,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.9.1"
+ scroll_loop_auto_scroll:
+ dependency: "direct main"
+ description:
+ name: scroll_loop_auto_scroll
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.0.5"
sky_engine:
dependency: transitive
description: flutter
@@ -530,6 +551,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.12"
+ text_scroll:
+ dependency: "direct main"
+ description:
+ name: text_scroll
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.1.1"
typed_data:
dependency: transitive
description:
diff --git a/Sources/dafl_project_flutter/pubspec.yaml b/Sources/dafl_project_flutter/pubspec.yaml
index 96ede70..01eca08 100644
--- a/Sources/dafl_project_flutter/pubspec.yaml
+++ b/Sources/dafl_project_flutter/pubspec.yaml
@@ -29,6 +29,9 @@ dependencies:
home_indicator: ^2.0.2
geolocator: ^9.0.2
flutter_styled_toast: ^2.1.3
+ marquee: ^2.2.3
+ text_scroll: ^0.1.1
+ scroll_loop_auto_scroll: ^0.0.2
dev_dependencies:
flutter_test: