Skip to content

Commit

Permalink
🐛 FIX:
Browse files Browse the repository at this point in the history
  • Loading branch information
moxun33 committed Aug 24, 2024
1 parent e64c47f commit 3bec33a
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 18 deletions.
22 changes: 16 additions & 6 deletions lib/components/player/settings/playlist_subscription.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:uuid/uuid.dart';
import 'package:vvibe/common/values/values.dart';
import 'package:vvibe/utils/utils.dart';
import 'package:uuid/uuid.dart';

//订阅播放列表
class PlaylistSubscription extends StatefulWidget {
Expand Down Expand Up @@ -134,7 +134,6 @@ class _PlaylistSubscritionState extends State<PlaylistSubscription> {
SizedBox(
width: 20,
),
// 登录按钮
SizedBox(
width: 130,
child: Row(
Expand Down Expand Up @@ -179,18 +178,24 @@ class _PlaylistSubscritionState extends State<PlaylistSubscription> {
Expanded(
child: ListView.builder(
itemCount: urls.length,
itemExtent: 60.0,
itemExtent: 70.0,
itemBuilder: (BuildContext context, int index) {
final item = urls[index];
return ListTile(
title: Row(children: [
Text(item['name']),
SelectableText(
item['name'],
style: TextStyle(fontSize: 16),
),
SizedBox(
width: 50,
),
Tooltip(
child: IconButton(
icon: Icon(Icons.edit_outlined),
icon: Icon(
Icons.edit_outlined,
size: 18,
),
onPressed: () {
_onEdit(item);
},
Expand All @@ -201,6 +206,7 @@ class _PlaylistSubscritionState extends State<PlaylistSubscription> {
child: IconButton(
icon: Icon(
Icons.delete_forever_outlined,
size: 18,
color: Colors.red,
),
onPressed: () {
Expand All @@ -210,7 +216,11 @@ class _PlaylistSubscritionState extends State<PlaylistSubscription> {
message: '删除',
)
]),
subtitle: Text(item['url']),
subtitle: SelectableText(
item['url'],
style: TextStyle(fontSize: 14),
),
contentPadding: EdgeInsets.all(0),
);
})),
],
Expand Down
10 changes: 3 additions & 7 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,16 @@
* @Description:
* @qmj
*/
import 'dart:convert';

import 'package:collection/collection.dart';
import 'package:chinese_font_library/chinese_font_library.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:get/get.dart';
import 'package:vvibe/common/langs/translation_service.dart';
import 'package:vvibe/global.dart';
import 'package:vvibe/pages/Index/Index_view.dart';
import 'package:vvibe/pages/Index/index_binding.dart';
import 'package:vvibe/router/app_pages.dart';
import 'package:get/get.dart';
import 'package:desktop_multi_window/desktop_multi_window.dart';
import 'package:vvibe/window/window.dart';
import 'package:vvibe/window/live_sniff_win.dart';

void main(List<String> args) async {
Global.init().then((theme) {
Expand Down Expand Up @@ -57,7 +53,7 @@ class MyApp extends StatelessWidget {
Widget build(BuildContext context) {
return GetMaterialApp(
title: 'VVibe',
theme: theme,
theme: theme.useSystemChineseFont(Brightness.light),
home: IndexPage(),
initialBinding: IndexBinding(),
debugShowCheckedModeBanner: false,
Expand Down
6 changes: 3 additions & 3 deletions lib/theme.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* @Author: Moxx
* @Date: 2022-09-09 17:00:19 * @Last Modified by: Moxx
/*
* @Author: Moxx
* @Date: 2022-09-09 17:00:19 * @Last Modified by: Moxx
* @Last Modified time: 2022-09-09 17:00:19 @Description:
*/

Expand Down
12 changes: 10 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,14 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.0.3"
chinese_font_library:
dependency: "direct main"
description:
name: chinese_font_library
sha256: f6c18eb58c1514a95e4ed9a7e2f6702be1333b67e4226976b333e5918021c1df
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.2.0"
cli_util:
dependency: transitive
description:
Expand Down Expand Up @@ -397,10 +405,10 @@ packages:
dependency: transitive
description:
name: http
sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2"
sha256: b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.13.6"
version: "1.2.2"
http_parser:
dependency: transitive
description:
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ dependencies:
url_launcher: ^6.3.0
cached_network_image: ^3.3.1
logging: ^1.2.0
chinese_font_library: ^1.2.0

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 3bec33a

Please sign in to comment.