0418 0222
更新2
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:unionapp/pages/music/music_page.dart';
|
||||
import '../../service/recommendation_helper.dart';
|
||||
import '../../service/song_service.dart';
|
||||
import '../../tool/gradientText.dart';
|
||||
import '../user/userpage.dart';
|
||||
import '../songlistpage.dart';
|
||||
import '../scorelist.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import '../../providers/user_provider.dart';
|
||||
@@ -107,7 +107,7 @@ class HomePage extends StatelessWidget {
|
||||
context: context,
|
||||
title: "歌曲列表",
|
||||
icon: Icons.music_note_outlined,
|
||||
targetPage: const SongListPage(),
|
||||
targetPage: const MusicPage(),
|
||||
gradient: const LinearGradient(
|
||||
colors: [Color(0xFFff9a9e), Color(0xFFfecfef)],
|
||||
begin: Alignment.topLeft,
|
||||
@@ -253,7 +253,9 @@ class HomePage extends StatelessWidget {
|
||||
label: "ReiSasol",
|
||||
color: Colors.white,
|
||||
gradient: LinearGradient(
|
||||
colors: [Colors.orange, Colors.deepOrangeAccent],
|
||||
colors: [Colors.orangeAccent, Colors.pink],
|
||||
begin: Alignment.center,
|
||||
end: Alignment.bottomLeft,
|
||||
),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
@@ -473,19 +475,18 @@ class _UserInfoCard extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
GradientText(
|
||||
data:"Ra${userProvider.user?.rating} ",
|
||||
data:"Ra:${userProvider.user?.rating} Points:${userProvider.user?.points}",
|
||||
style: const TextStyle(fontSize: 12, fontWeight: FontWeight.bold),
|
||||
gradientLayers: [
|
||||
GradientLayer(
|
||||
gradient: const LinearGradient(
|
||||
colors: [Colors.deepPurple, Colors.pinkAccent],
|
||||
colors: [Colors.deepPurple, Colors.purple],
|
||||
),
|
||||
blendMode: BlendMode.srcIn,
|
||||
),
|
||||
],
|
||||
),
|
||||
const Divider(height: 5, thickness: 1),
|
||||
const SizedBox(height: 6),
|
||||
Text(
|
||||
userProvider.username == "未登录"
|
||||
? "状态:未登录"
|
||||
@@ -559,10 +560,9 @@ class _RecommendedSongsSection extends StatelessWidget {
|
||||
children: [
|
||||
const Row(
|
||||
children: [
|
||||
Icon(Icons.music_note, color: Colors.purpleAccent),
|
||||
SizedBox(width: 8),
|
||||
Text(
|
||||
"为你推荐",
|
||||
"随几首",
|
||||
style: TextStyle(
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.bold,
|
||||
|
||||
Reference in New Issue
Block a user