Skip to content

Commit

Permalink
[Change] keep light theme
Browse files Browse the repository at this point in the history
  • Loading branch information
canxin121 committed May 6, 2024
1 parent b855d36 commit f6cd140
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
1 change: 0 additions & 1 deletion lib/comp/play_page_comp/quality_time.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 'package:app_rhyme/util/audio_controller.dart';
import 'package:app_rhyme/util/pull_down_selection.dart';
import 'package:app_rhyme/util/time_parse.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:get/get_state_manager/src/rx_flutter/rx_obx_widget.dart';
import 'package:glassmorphism_ui/glassmorphism_ui.dart';
import 'package:pull_down_button/pull_down_button.dart';
Expand Down
6 changes: 4 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ class MyApp extends StatelessWidget {
],
title: 'AppRhyme',
theme: CupertinoThemeData(
primaryColor: CupertinoColors.black,
brightness: Brightness.light,
primaryColor: CupertinoColors.white,
textTheme: CupertinoTextThemeData(
textStyle: const TextStyle(color: CupertinoColors.black)
.useSystemChineseFont())),
.useSystemChineseFont()),
applyThemeToAll: true),
home: const HomePage(),
);
}
Expand Down
11 changes: 0 additions & 11 deletions lib/util/audio_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -362,17 +362,6 @@ class AudioUiController extends GetxController {
position.value.inMicroseconds / duration.value.inMicroseconds;
update();
});

// globalAudioHandler._player
// .createPositionStream(
// maxPeriod: const Duration(milliseconds: 100),
// minPeriod: const Duration(milliseconds: 1))
// .listen((newPosition) {
// position.value = newPosition;
// playProgress.value =
// position.value.inMicroseconds / duration.value.inMicroseconds;
// update();
// });
}

Duration getToSeek(double toSeek) {
Expand Down

0 comments on commit f6cd140

Please sign in to comment.