Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/Blocs/power_management_bloc/power_management_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:battery_plus/battery_plus.dart';
import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:wakelock/wakelock.dart';
import 'package:wakelock_plus/wakelock_plus.dart';

part 'power_management_event.dart';
part 'power_management_state.dart';
Expand Down Expand Up @@ -67,7 +67,7 @@ class PowerManagementBloc
SetKeepCpuAwakeEvent event,
Emitter<PowerManagementState> emit,
) {
Wakelock.toggle(enable: event.keepCpuAwake);
WakelockPlus.toggle(enable: event.keepCpuAwake);
emit(state.copyWith(keepCpuAwake: event.keepCpuAwake));
}

Expand Down
152 changes: 76 additions & 76 deletions lib/Pages/home_screen/widgets/rss_feed_home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -521,35 +521,32 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
),
value: context
.l10n.feeds_time_minutes,
icon: Icon(
Icons.keyboard_arrow_down,
color: ThemeBloc.theme(
widget.themeIndex)
.textTheme
.bodyLarge
?.color,
iconStyleData: IconStyleData(
icon: Icon(
Icons.keyboard_arrow_down,
color: ThemeBloc.theme(widget.themeIndex)
.textTheme
.bodyLarge
?.color,
),
),
buttonHeight: 58,
buttonPadding:
const EdgeInsets.only(
left: 20, right: 10),
dropdownDecoration:
BoxDecoration(
boxShadow: [
BoxShadow(
color: Colors.black12
.withOpacity(0.5),
spreadRadius: 5,
blurRadius: 7,
offset: Offset(0,
3), // changes position of shadow
),
],
borderRadius:
BorderRadius.circular(5),
color: ThemeBloc.theme(
widget.themeIndex)
.primaryColorLight,
buttonStyleData: ButtonStyleData(
height: 58,
padding: EdgeInsets.only(left: 20, right: 10),
),
dropdownStyleData: DropdownStyleData(
decoration: BoxDecoration(
boxShadow: [
BoxShadow(
color: Colors.black12.withOpacity(0.5),
spreadRadius: 5,
blurRadius: 7,
offset: Offset(0, 3), // changes position of shadow
),
],
borderRadius: BorderRadius.circular(5),
color: ThemeBloc.theme(widget.themeIndex).primaryColorLight,
),
),
items: intervalunits
.map((item) =>
Expand Down Expand Up @@ -860,30 +857,34 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
.bodyLarge
?.color),
),
icon: Icon(
Icons.keyboard_arrow_down,
color: ThemeBloc.theme(widget.themeIndex)
.textTheme
.bodyLarge
?.color,
iconStyleData: IconStyleData(
icon: Icon(
Icons.keyboard_arrow_down,
color: ThemeBloc.theme(widget.themeIndex)
.textTheme
.bodyLarge
?.color,
),
),
buttonHeight: 58,
buttonPadding:
const EdgeInsets.only(left: 20, right: 10),
dropdownDecoration: BoxDecoration(
boxShadow: [
BoxShadow(
color: Colors.black12.withOpacity(0.5),
spreadRadius: 5,
blurRadius: 7,
offset: Offset(
0, 3), // changes position of shadow
),
],
borderRadius: BorderRadius.circular(5),
color: ThemeBloc.theme(widget.themeIndex)
.primaryColorLight,
buttonStyleData: ButtonStyleData(
height: 58,
padding: EdgeInsets.only(left: 20, right: 10),
),
dropdownStyleData: DropdownStyleData(
decoration: BoxDecoration(
boxShadow: [
BoxShadow(
color: Colors.black12.withOpacity(0.5),
spreadRadius: 5,
blurRadius: 7,
offset: Offset(0, 3), // changes position of shadow
),
],
borderRadius: BorderRadius.circular(5),
color: ThemeBloc.theme(widget.themeIndex).primaryColorLight,
),
),

items: feedlabelgetter(state.rssFeedsList)
.map((item) => DropdownMenuItem<String>(
value: item,
Expand Down Expand Up @@ -1842,33 +1843,32 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
.bodyLarge
?.color),
),
icon: Icon(
Icons.keyboard_arrow_down,
color: ThemeBloc.theme(
widget.themeIndex)
.textTheme
.bodyLarge
?.color,
iconStyleData: IconStyleData(
icon: Icon(
Icons.keyboard_arrow_down,
color: ThemeBloc.theme(widget.themeIndex)
.textTheme
.bodyLarge
?.color,
),
),
buttonHeight: 58,
buttonPadding: const EdgeInsets.only(
left: 20, right: 10),
dropdownDecoration: BoxDecoration(
boxShadow: [
BoxShadow(
color: Colors.black12
.withOpacity(0.5),
spreadRadius: 5,
blurRadius: 7,
offset: Offset(0,
3), // changes position of shadow
),
],
borderRadius:
BorderRadius.circular(5),
color: ThemeBloc.theme(
widget.themeIndex)
.primaryColorLight,
buttonStyleData: ButtonStyleData(
height: 58,
padding: EdgeInsets.only(left: 20, right: 10),
),
dropdownStyleData: DropdownStyleData(
decoration: BoxDecoration(
boxShadow: [
BoxShadow(
color: Colors.black12.withOpacity(0.5),
spreadRadius: 5,
blurRadius: 7,
offset: Offset(0, 3), // changes position of shadow
),
],
borderRadius: BorderRadius.circular(5),
color: ThemeBloc.theme(widget.themeIndex).primaryColorLight,
),
),
items: feedlabelgetter(
state.rssFeedsList)
Expand Down
2 changes: 1 addition & 1 deletion lib/Pages/torrent_screen/widgets/speed_graph.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class SpeedSpeedGraphState extends State<SpeedGraph> {
borderWidth: 0,
borderColor: Colors.transparent,
),
series: <ChartSeries<GraphModel, int>>[
series: <CartesianSeries<GraphModel, int>>[
SplineAreaSeries(
dataSource: _speedGraphBloc.state.uploadGraphData,
xValueMapper: (GraphModel data, index) => data.second,
Expand Down
Loading