From b6e24ab59aaf7ecafd6861e912c348ac6dbc4546 Mon Sep 17 00:00:00 2001
From: SputNikPlop <100245448+SputNikPlop@users.noreply.github.com>
Date: Fri, 24 May 2024 00:45:45 -0700
Subject: [PATCH 1/2] fix: flutter deprecatios for 3.22
---
README.md | 5 +-
assets/apple-download.svg | 46 +++++++
assets/google-play-badge.png | Bin 0 -> 12127 bytes
lib/main.dart | 8 +-
lib/src/core/resources/data_state.dart | 2 +-
lib/src/core/resources/themes.dart | 36 ++---
.../utils/crashlytics_talker_observer.dart | 22 +--
lib/src/core/utils/dashboard_events.dart | 3 +-
lib/src/core/utils/init_dio.dart | 3 +-
.../stream_elements/se_activity_dto.dart | 4 +-
.../twitch/twitch_decoded_idtoken_dto.dart | 1 -
.../data/entities/twitch/twitch_poll_dto.dart | 2 +-
.../data/entities/twitch/twitch_user_dto.dart | 1 -
.../domain/entities/chat/chat_message.dart | 91 ++++++++-----
.../entities/stream_elements/se_activity.dart | 4 +-
.../entities/stream_elements/se_song.dart | 4 +-
.../streamelements_repository.dart | 3 +-
.../usecases/streamelements_usecase.dart | 7 +-
.../controllers/dashboard_controller.dart | 3 +-
.../controllers/home_view_controller.dart | 3 +-
.../streamelements_view_controller.dart | 4 +-
lib/src/presentation/events/home_events.dart | 10 +-
.../events/streamelements_events.dart | 6 +-
lib/src/presentation/views/home_view.dart | 30 ++--
lib/src/presentation/views/login_view.dart | 2 +-
lib/src/presentation/views/settings_view.dart | 13 +-
.../chats/chat_message/kick/kick_emote.dart | 3 +-
.../chat_message/shared/author_name.dart | 5 +-
.../shared/message_container.dart | 2 +-
.../twitch/moderation_bottom_sheet.dart | 8 +-
.../presentation/widgets/chats/chat_view.dart | 128 +++++++++---------
lib/src/presentation/widgets/dashboard.dart | 3 +-
lib/src/presentation/widgets/hype_train.dart | 1 -
.../widgets/settings/chat_events.dart | 4 +-
.../widgets/settings/chats_joined.dart | 4 +-
.../settings/dashboard_settings_view.dart | 16 +--
.../dialogs/in_app_purchase_dialog.dart | 2 +-
.../settings/manage_list_browser_tabs.dart | 8 +-
.../settings/manage_list_hidden_users.dart | 2 +-
.../presentation/widgets/settings/tts.dart | 14 +-
.../stream_elements/se_song_requests.dart | 8 +-
.../tabs/dialogs/slow_mode_dialog.dart | 2 +-
.../widgets/tabs/obs_tab_view.dart | 4 +-
.../widgets/tabs/streamelements_tab_view.dart | 2 +-
.../widgets/tabs/twitch_tab_view.dart | 2 +-
pubspec.lock | 24 ++--
test/widget_test.dart | 4 +-
47 files changed, 324 insertions(+), 235 deletions(-)
create mode 100644 assets/apple-download.svg
create mode 100644 assets/google-play-badge.png
diff --git a/README.md b/README.md
index aeec98cb..795c0b69 100644
--- a/README.md
+++ b/README.md
@@ -8,12 +8,11 @@ IRL Link is a mobile application to monitor your IRL Stream.
[![GitHub](https://img.shields.io/github/license/lezdcs/irl_link?color=%238442f5)](https://choosealicense.com/licenses/gpl-3.0/)
## Download
-
-
+
+
Also available in the [Releases](https://github.com/LezdCS/irl_link/releases).
-Soon to be released on the iOS App Store!
## Features
diff --git a/assets/apple-download.svg b/assets/apple-download.svg
new file mode 100644
index 00000000..072b425a
--- /dev/null
+++ b/assets/apple-download.svg
@@ -0,0 +1,46 @@
+
diff --git a/assets/google-play-badge.png b/assets/google-play-badge.png
new file mode 100644
index 0000000000000000000000000000000000000000..ca73005f5a50258f12e2dc2e0f8d478f9c34d968
GIT binary patch
literal 12127
zcmb8VRajh2)FliA*T$i7cMER8Em&|TK+xds!J&cR8r&tgySrPk;O_20dYbq9|9R$S
zF6M$$-OZ_8yJWB0vckV8$)F(vk)fcV(Bxz#RiU6@1R$R)5#b?E5%S`8NCWMxDkBb6
zIZ1p3`2uSprYHslRTG2qVhjiQj^rS#;|v9b-uM0oJ!D^E3I)Y_D<>(Y?qPVA>0OUI
zka-bF&Y06D(Osq@I^i4x)`T;|ers=g=YeN=^F>OX@%%
z+R}&myFSx3!Nk}v*rW{8j7SXftbR#Ra)0Pv30R+=mV>$C=V^;NcP-b8b#M2F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xR)^DX@
z@l&EK1;%3XPaNweLHKoCa9ptONMI%|0!f3V*``(w(}HXj0ouRBf3{+YgZS9fB0S)e
zgF$_HQjzWOR6+vsAnBkL#_vk>p$YiQwq``GG`Up4mb!ryyIfc{g(yE}MXM=nsO^G>
zX|V*}3t#liiX1WT#XAZ~{{I^_uN5hiM9|IV+CAj`y^m9JbeX#sNyX{Y%k@@jO%$4q
zNTBy}9R*Nsqto}bLrD`tiY@CpnNd7U{6P;H9#UFj#%?@3U9KClS+3o4f6JBO&Fu?=
z@Yn8Q1cr(r#VUZfX&i)w>cTl%uG{cEyK7|tx@Q=|uk~Hr;0}UEi(mSWYDh~c=vLmf
zI07l;gZD4o9Q~)QtgXG*H}3d$esaDDzl#B#vRlnkLuix>3k&>jb`YjyCSA6Vlm3!#
z$TXplM>T{y1JQKGH6%ga_CQ~+Ux&F8+3*g
zm;QNYLP}m9aa}7>wc-|UFHc~FU8n9;j&HlY|IsgLA8(6A&IT|Mj3$uSb_t8hr;Tst
z)s%(rEWpzr%A!Nl-zS(C2k`$njife`_Q5O!UFd%48<`}0D}ax4&rCsxmZxdAu@Tt~F!E-^zS1a|V}i
z!;*dVK5NL@qA}VTjM^_sw-ZR`RjmNgc6y05Q8e=KW)p$`e3E+@RdAo`^aI=i{d@GH(y#(tX0eG5}(|K(7y8}MFaz143%h1R+ny*h{85DMPlR4T_#6P5H&`sa@5bT1Qx6wS?r
zzwMrNO-PVV;=vTneA>PlzRY}}bO&N30+<-GACFrxEfK^Z8W$MW=FLE@cfK43tk`?i
zAsEmAqcy)1BhtzK-9>{23yGw=mD6lAF*}Nwzt)f6J^8=m&Q0!+%&c>5QPh5=JV0AB
zjpPhrZ@+XF7MhJu=Sq0X-M$N=Wa!_7&^6tZt*uXlY7_3
z6xHfK(kr {
this.data,
this.error,
}) {
- if(error != null) {
+ if (error != null) {
globals.talker?.error(error);
}
}
diff --git a/lib/src/core/resources/themes.dart b/lib/src/core/resources/themes.dart
index 6165405f..869af2f8 100644
--- a/lib/src/core/resources/themes.dart
+++ b/lib/src/core/resources/themes.dart
@@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
class Themes {
final ThemeData darkTheme = ThemeData.dark().copyWith(
colorScheme: ColorScheme.fromSwatch().copyWith(
- background: const Color(0xFF0e0e10),
+ surface: const Color(0xFF0e0e10),
secondary: const Color(0xFF18181b),
error: const Color(0xFFEC0808),
@@ -25,23 +25,23 @@ class Themes {
),
),
switchTheme: SwitchThemeData(
- thumbColor: MaterialStateProperty.resolveWith(
- (Set states) {
- if (states.contains(MaterialState.selected)) {
+ thumbColor: WidgetStateProperty.resolveWith(
+ (Set states) {
+ if (states.contains(WidgetState.selected)) {
return Colors.white;
}
- if (states.contains(MaterialState.disabled)) {
+ if (states.contains(WidgetState.disabled)) {
return null;
}
return Colors.white;
},
),
- trackColor: MaterialStateProperty.resolveWith(
- (Set states) {
- if (states.contains(MaterialState.selected)) {
+ trackColor: WidgetStateProperty.resolveWith(
+ (Set states) {
+ if (states.contains(WidgetState.selected)) {
return Colors.deepPurpleAccent[200];
}
- if (states.contains(MaterialState.disabled)) {
+ if (states.contains(WidgetState.disabled)) {
return Colors.grey[850];
}
return Colors.grey[850];
@@ -61,7 +61,7 @@ class Themes {
final ThemeData lightTheme = ThemeData.light().copyWith(
colorScheme: ColorScheme.fromSwatch().copyWith(
- background: const Color(0xFFffffff),
+ surface: const Color(0xFFffffff),
secondary: const Color(0xFFefeff1),
error: const Color(0xFFEC0808),
@@ -77,23 +77,23 @@ class Themes {
),
),
switchTheme: SwitchThemeData(
- thumbColor: MaterialStateProperty.resolveWith(
- (Set states) {
- if (states.contains(MaterialState.selected)) {
+ thumbColor: WidgetStateProperty.resolveWith(
+ (Set states) {
+ if (states.contains(WidgetState.selected)) {
return Colors.white;
}
- if (states.contains(MaterialState.disabled)) {
+ if (states.contains(WidgetState.disabled)) {
return null;
}
return Colors.white;
},
),
- trackColor: MaterialStateProperty.resolveWith(
- (Set states) {
- if (states.contains(MaterialState.selected)) {
+ trackColor: WidgetStateProperty.resolveWith(
+ (Set states) {
+ if (states.contains(WidgetState.selected)) {
return Colors.deepPurpleAccent[200];
}
- if (states.contains(MaterialState.disabled)) {
+ if (states.contains(WidgetState.disabled)) {
return Colors.grey[850];
}
return Colors.grey[850];
diff --git a/lib/src/core/utils/crashlytics_talker_observer.dart b/lib/src/core/utils/crashlytics_talker_observer.dart
index 2fe4d48f..5e6d9571 100644
--- a/lib/src/core/utils/crashlytics_talker_observer.dart
+++ b/lib/src/core/utils/crashlytics_talker_observer.dart
@@ -6,19 +6,19 @@ class CrashlyticsTalkerObserver extends TalkerObserver {
@override
void onError(err) {
- FirebaseCrashlytics.instance.recordError(
- err.error,
- err.stackTrace,
- reason: err.message,
- );
+ FirebaseCrashlytics.instance.recordError(
+ err.error,
+ err.stackTrace,
+ reason: err.message,
+ );
}
@override
void onException(err) {
- FirebaseCrashlytics.instance.recordError(
- err.exception,
- err.stackTrace,
- reason: err.message,
- );
+ FirebaseCrashlytics.instance.recordError(
+ err.exception,
+ err.stackTrace,
+ reason: err.message,
+ );
}
-}
\ No newline at end of file
+}
diff --git a/lib/src/core/utils/dashboard_events.dart b/lib/src/core/utils/dashboard_events.dart
index 7383d316..9e2b76e1 100644
--- a/lib/src/core/utils/dashboard_events.dart
+++ b/lib/src/core/utils/dashboard_events.dart
@@ -132,7 +132,8 @@ Map dashboardEvents = {
provider: DashboardActionsProvider.twitch,
actionsAllowed: [DashboardActionsTypes.button],
action: (String v) {
- String channel = Get.find().twitchData!.twitchUser.login;
+ String channel =
+ Get.find().twitchData!.twitchUser.login;
Get.find()
.sendChatMessage(v.substring(1, v.length - 1), channel);
},
diff --git a/lib/src/core/utils/init_dio.dart b/lib/src/core/utils/init_dio.dart
index 5e8148af..b854a9ac 100644
--- a/lib/src/core/utils/init_dio.dart
+++ b/lib/src/core/utils/init_dio.dart
@@ -10,7 +10,8 @@ Dio initDio() {
TalkerDioLogger(
talker: talker,
settings: TalkerDioLoggerSettings(
- requestFilter: (RequestOptions options) => !options.path.contains('api.twitch.tv'),
+ requestFilter: (RequestOptions options) =>
+ !options.path.contains('api.twitch.tv'),
printRequestHeaders: true,
// responseFilter: (response) => ![200, 202].contains(response.statusCode),
),
diff --git a/lib/src/data/entities/stream_elements/se_activity_dto.dart b/lib/src/data/entities/stream_elements/se_activity_dto.dart
index 8a3b8ecf..54a9421f 100644
--- a/lib/src/data/entities/stream_elements/se_activity_dto.dart
+++ b/lib/src/data/entities/stream_elements/se_activity_dto.dart
@@ -18,7 +18,7 @@ class SeActivityDTO extends SeActivity {
factory SeActivityDTO.fromJson(Map map) {
switch (map['type']) {
case 'follow':
- return SeActivityDTO (
+ return SeActivityDTO(
id: map["_id"],
channel: map["channel"],
username: map["data"]["displayName"],
@@ -37,7 +37,7 @@ class SeActivityDTO extends SeActivity {
activityType: ActivityType.subscription,
);
case "tip":
- return SeActivityDTO(
+ return SeActivityDTO(
id: map["_id"],
channel: map["channel"],
username: map["data"]["displayName"],
diff --git a/lib/src/data/entities/twitch/twitch_decoded_idtoken_dto.dart b/lib/src/data/entities/twitch/twitch_decoded_idtoken_dto.dart
index 03bb1a0c..d1c03ef2 100644
--- a/lib/src/data/entities/twitch/twitch_decoded_idtoken_dto.dart
+++ b/lib/src/data/entities/twitch/twitch_decoded_idtoken_dto.dart
@@ -1,4 +1,3 @@
-
import 'package:irllink/src/domain/entities/twitch/twitch_decoded_idtoken.dart';
class TwitchDecodedIdTokenDTO extends TwitchDecodedIdToken {
diff --git a/lib/src/data/entities/twitch/twitch_poll_dto.dart b/lib/src/data/entities/twitch/twitch_poll_dto.dart
index a282c79e..a0b837e9 100644
--- a/lib/src/data/entities/twitch/twitch_poll_dto.dart
+++ b/lib/src/data/entities/twitch/twitch_poll_dto.dart
@@ -43,7 +43,7 @@ class TwitchPollDTO extends TwitchPoll {
DateFormat df = DateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
DateTime endsAt = df.parse(map['ends_at'] ?? map['ended_at']);
-
+
return TwitchPollDTO(
id: map['id'],
title: map['title'],
diff --git a/lib/src/data/entities/twitch/twitch_user_dto.dart b/lib/src/data/entities/twitch/twitch_user_dto.dart
index ab4f2484..5bc9ea45 100644
--- a/lib/src/data/entities/twitch/twitch_user_dto.dart
+++ b/lib/src/data/entities/twitch/twitch_user_dto.dart
@@ -1,4 +1,3 @@
-
import 'package:irllink/src/domain/entities/twitch/twitch_user.dart';
class TwitchUserDTO extends TwitchUser {
diff --git a/lib/src/domain/entities/chat/chat_message.dart b/lib/src/domain/entities/chat/chat_message.dart
index fdc087e2..1aa5cdc8 100644
--- a/lib/src/domain/entities/chat/chat_message.dart
+++ b/lib/src/domain/entities/chat/chat_message.dart
@@ -22,12 +22,17 @@ enum Platform {
}
// ignore: must_be_immutable
-class ChatMessage extends Equatable implements twitch.Subscription, twitch.SubGift, twitch.BitDonation, twitch.IncomingRaid {
+class ChatMessage extends Equatable
+ implements
+ twitch.Subscription,
+ twitch.SubGift,
+ twitch.BitDonation,
+ twitch.IncomingRaid {
@override
final String id;
@override
final String authorId;
- @override
+ @override
final String username;
@override
final String color;
@@ -51,6 +56,7 @@ class ChatMessage extends Equatable implements twitch.Subscription, twitch.SubGi
final String channelId;
final EventType? eventType;
final List badgesList;
+ @override
final Map emotes; //TODO: emote entity
final Platform platform;
@@ -88,10 +94,11 @@ class ChatMessage extends Equatable implements twitch.Subscription, twitch.SubGi
});
factory ChatMessage.fromTwitch(twitch.ChatMessage message, String channelId) {
-
EventType? type = EventType.values.firstWhereOrNull(
- (e) => e.toString().split('.').last == message.highlightType.toString().split('.').last,
- );
+ (e) =>
+ e.toString().split('.').last ==
+ message.highlightType.toString().split('.').last,
+ );
return ChatMessage(
id: message.id,
authorId: message.authorId,
@@ -107,26 +114,42 @@ class ChatMessage extends Equatable implements twitch.Subscription, twitch.SubGi
isDeleted: false,
rawData: message.rawData,
eventType: type,
- badgesList: message.badges.map((badge) => ChatBadge.fromTwitch(badge)).toList(),
+ badgesList:
+ message.badges.map((badge) => ChatBadge.fromTwitch(badge)).toList(),
emotes: message.emotes,
platform: Platform.twitch,
channelId: channelId,
//implements
- raidingChannelName: type == EventType.incomingRaid ? (message as twitch.IncomingRaid).raidingChannelName : '',
+ raidingChannelName: type == EventType.incomingRaid
+ ? (message as twitch.IncomingRaid).raidingChannelName
+ : '',
badges: message.badges,
- giftedName: type == EventType.subscriptionGifted ? (message as twitch.SubGift).giftedName : '',
+ giftedName: type == EventType.subscriptionGifted
+ ? (message as twitch.SubGift).giftedName
+ : '',
highlightType: message.highlightType,
isGift: type == EventType.subscriptionGifted,
- months: type == EventType.subscription ? (message as twitch.Subscription).months : '',
- systemMessage: type == EventType.subscriptionGifted ? (message as twitch.SubGift).systemMessage : '',
- tier: type == EventType.subscription ? (message as twitch.Subscription).tier : '',
- totalBits: type == EventType.bitDonation ? (message as twitch.BitDonation).totalBits : 0,
- viewerCount: type == EventType.incomingRaid ? (message as twitch.IncomingRaid).viewerCount : 0,
+ months: type == EventType.subscription
+ ? (message as twitch.Subscription).months
+ : '',
+ systemMessage: type == EventType.subscriptionGifted
+ ? (message as twitch.SubGift).systemMessage
+ : '',
+ tier: type == EventType.subscription
+ ? (message as twitch.Subscription).tier
+ : '',
+ totalBits: type == EventType.bitDonation
+ ? (message as twitch.BitDonation).totalBits
+ : 0,
+ viewerCount: type == EventType.incomingRaid
+ ? (message as twitch.IncomingRaid).viewerCount
+ : 0,
);
}
- factory ChatMessage.fromKick(KickMessage message, String channelId, List subBadges) {
+ factory ChatMessage.fromKick(
+ KickMessage message, String channelId, List subBadges) {
return ChatMessage(
id: message.data.id,
authorId: message.data.sender.id.toString(),
@@ -142,7 +165,9 @@ class ChatMessage extends Equatable implements twitch.Subscription, twitch.SubGi
isDeleted: false,
rawData: '',
eventType: null, //TODO: Add event type for KickMessage
- badgesList: message.data.sender.identity.badges.map((badge) => ChatBadge.fromKick(channelId, badge, subBadges)).toList(),
+ badgesList: message.data.sender.identity.badges
+ .map((badge) => ChatBadge.fromKick(channelId, badge, subBadges))
+ .toList(),
emotes: const {}, //TODO: Add emotes for KickMessage
platform: Platform.kick,
channelId: channelId,
@@ -158,11 +183,11 @@ class ChatMessage extends Equatable implements twitch.Subscription, twitch.SubGi
tier: '',
totalBits: 0,
viewerCount: 0,
-
);
}
- factory ChatMessage.kickSub(KickSubscription sub, String channelId, List subBadges) {
+ factory ChatMessage.kickSub(
+ KickSubscription sub, String channelId, List subBadges) {
return ChatMessage(
id: '',
authorId: '',
@@ -197,7 +222,8 @@ class ChatMessage extends Equatable implements twitch.Subscription, twitch.SubGi
);
}
- factory ChatMessage.kickSubGift(KickGiftedSubscriptions sub, String channelId, List subBadges) {
+ factory ChatMessage.kickSubGift(KickGiftedSubscriptions sub, String channelId,
+ List subBadges) {
return ChatMessage(
id: '',
authorId: '',
@@ -221,7 +247,8 @@ class ChatMessage extends Equatable implements twitch.Subscription, twitch.SubGi
//implements
raidingChannelName: '',
badges: const [],
- giftedName: sub.data.giftedUsernames.first, //TODO: handle multiple usernames gifted
+ giftedName: sub
+ .data.giftedUsernames.first, //TODO: handle multiple usernames gifted
highlightType: null,
isGift: true,
months: '',
@@ -232,7 +259,8 @@ class ChatMessage extends Equatable implements twitch.Subscription, twitch.SubGi
);
}
- factory ChatMessage.kickHost(KickStreamHost host, String channelId, List subBadges) {
+ factory ChatMessage.kickHost(
+ KickStreamHost host, String channelId, List subBadges) {
return ChatMessage(
id: '',
authorId: '',
@@ -312,13 +340,13 @@ class ChatMessage extends Equatable implements twitch.Subscription, twitch.SubGi
@override
bool get stringify => true;
-
+
@override
String raidingChannelName;
- @override
+ @override
List badges;
-
+
@override
String displayName;
@@ -327,28 +355,27 @@ class ChatMessage extends Equatable implements twitch.Subscription, twitch.SubGi
@override
twitch.HighlightType? highlightType;
-
+
@override
bool isGift;
-
+
@override
String months;
-
+
@override
String systemMessage;
-
+
@override
String tier;
-
+
@override
int totalBits;
-
+
@override
int viewerCount;
-
+
@override
- set rawData(String _rawData) {
+ set rawData(String rawData) {
// TODO: implement rawData
}
-
}
diff --git a/lib/src/domain/entities/stream_elements/se_activity.dart b/lib/src/domain/entities/stream_elements/se_activity.dart
index 38658303..c4d3c692 100644
--- a/lib/src/domain/entities/stream_elements/se_activity.dart
+++ b/lib/src/domain/entities/stream_elements/se_activity.dart
@@ -92,7 +92,7 @@ class SeActivity extends Equatable {
colors.add(const Color(0xFF2E0219));
break;
case ActivityType.unsupported:
- //background color
+ //background color
colors.add(const Color(0xFFA47CED));
//circle color
colors.add(const Color(0xFF341D5B));
@@ -129,7 +129,7 @@ class SeActivity extends Equatable {
s = '$amount Hosted viewers';
break;
case ActivityType.unsupported:
- s = 'Unsupported event';
+ s = 'Unsupported event';
break;
}
return s;
diff --git a/lib/src/domain/entities/stream_elements/se_song.dart b/lib/src/domain/entities/stream_elements/se_song.dart
index 11bdd08e..d024530d 100644
--- a/lib/src/domain/entities/stream_elements/se_song.dart
+++ b/lib/src/domain/entities/stream_elements/se_song.dart
@@ -17,10 +17,10 @@ class SeSong extends Equatable {
factory SeSong.fromJson(Map map) {
return SeSong(
- id: map["_id"] ?? '',
+ id: map["_id"] ?? '',
title: map["title"],
videoId: map["videoId"],
- duration: map["duration"] ?? 0,
+ duration: map["duration"] ?? 0,
channel: map["channel"],
);
}
diff --git a/lib/src/domain/repositories/streamelements_repository.dart b/lib/src/domain/repositories/streamelements_repository.dart
index c8afc6a7..524a437b 100644
--- a/lib/src/domain/repositories/streamelements_repository.dart
+++ b/lib/src/domain/repositories/streamelements_repository.dart
@@ -9,7 +9,8 @@ import 'package:irllink/src/domain/entities/stream_elements/se_song.dart';
abstract class StreamelementsRepository {
Future> login(StreamelementsAuthParams params);
- Future> refreshAccessToken(SeCredentials seCredentials);
+ Future> refreshAccessToken(
+ SeCredentials seCredentials);
Future> disconnect(String accessToken);
diff --git a/lib/src/domain/usecases/streamelements_usecase.dart b/lib/src/domain/usecases/streamelements_usecase.dart
index d03cc5ae..39e7f9f8 100644
--- a/lib/src/domain/usecases/streamelements_usecase.dart
+++ b/lib/src/domain/usecases/streamelements_usecase.dart
@@ -11,18 +11,19 @@ class StreamelementsUseCase {
final StreamelementsRepository streamelementsRepository;
StreamelementsUseCase({required this.streamelementsRepository});
- Future> login({required StreamelementsAuthParams params}) {
+ Future> login(
+ {required StreamelementsAuthParams params}) {
return streamelementsRepository.login(params);
}
- Future> refreshAccessToken({required SeCredentials seCredentials}) {
+ Future> refreshAccessToken(
+ {required SeCredentials seCredentials}) {
return streamelementsRepository.refreshAccessToken(seCredentials);
}
Future> getSeCredentialsFromLocal() {
return streamelementsRepository.getSeCredentialsFromLocal();
}
-
Future> disconnect(String accessToken) {
return streamelementsRepository.disconnect(accessToken);
diff --git a/lib/src/presentation/controllers/dashboard_controller.dart b/lib/src/presentation/controllers/dashboard_controller.dart
index 182127a4..d41b1204 100644
--- a/lib/src/presentation/controllers/dashboard_controller.dart
+++ b/lib/src/presentation/controllers/dashboard_controller.dart
@@ -10,7 +10,8 @@ class DashboardController extends GetxController {
// Add a dashboard event
void addDashboardEvent(DashboardEvent event) {
List events = [];
- events.addAll(homeViewController.settings.value.dashboardSettings!.userEvents);
+ events.addAll(
+ homeViewController.settings.value.dashboardSettings!.userEvents);
events.add(event);
homeViewController.settings.value =
homeViewController.settings.value.copyWith(
diff --git a/lib/src/presentation/controllers/home_view_controller.dart b/lib/src/presentation/controllers/home_view_controller.dart
index 2443c6a5..bc98573b 100644
--- a/lib/src/presentation/controllers/home_view_controller.dart
+++ b/lib/src/presentation/controllers/home_view_controller.dart
@@ -105,8 +105,7 @@ class HomeViewController extends GetxController
homeEvents
.refreshSeAccessToken(seCredentials: seCredentials.value!)
.then((value) => {
- if (value.error == null)
- {seCredentials.value = value.data!}
+ if (value.error == null) {seCredentials.value = value.data!}
});
}
});
diff --git a/lib/src/presentation/controllers/streamelements_view_controller.dart b/lib/src/presentation/controllers/streamelements_view_controller.dart
index 22c1df75..17693a80 100644
--- a/lib/src/presentation/controllers/streamelements_view_controller.dart
+++ b/lib/src/presentation/controllers/streamelements_view_controller.dart
@@ -162,7 +162,9 @@ class StreamelementsViewController extends GetxController
},
);
- socket!.onAny((event, data) => globals.talker?.debug(data),);
+ socket!.onAny(
+ (event, data) => globals.talker?.debug(data),
+ );
socket!.on(
'songrequest:song:next',
diff --git a/lib/src/presentation/events/home_events.dart b/lib/src/presentation/events/home_events.dart
index 475c775b..1128f33c 100644
--- a/lib/src/presentation/events/home_events.dart
+++ b/lib/src/presentation/events/home_events.dart
@@ -18,7 +18,10 @@ class HomeEvents {
final SettingsUseCase settingsUseCase;
final StreamelementsUseCase streamelementsUseCase;
- HomeEvents({required this.twitchUseCase, required this.settingsUseCase, required this.streamelementsUseCase});
+ HomeEvents(
+ {required this.twitchUseCase,
+ required this.settingsUseCase,
+ required this.streamelementsUseCase});
Future> getTwitchFromLocal() {
return twitchUseCase.getTwitchFromLocal();
@@ -48,14 +51,15 @@ class HomeEvents {
Future> refreshSeAccessToken({
required SeCredentials seCredentials,
}) {
- return streamelementsUseCase.refreshAccessToken(seCredentials: seCredentials);
+ return streamelementsUseCase.refreshAccessToken(
+ seCredentials: seCredentials);
}
Future> getSeCredentialsFromLocal() {
return streamelementsUseCase.getSeCredentialsFromLocal();
}
- Future> getSeMe(String token) {
+ Future> getSeMe(String token) {
return streamelementsUseCase.getMe(token);
}
diff --git a/lib/src/presentation/events/streamelements_events.dart b/lib/src/presentation/events/streamelements_events.dart
index 658339e3..b1291b6d 100644
--- a/lib/src/presentation/events/streamelements_events.dart
+++ b/lib/src/presentation/events/streamelements_events.dart
@@ -19,7 +19,8 @@ class StreamelementsEvents {
required this.settingsUseCase,
});
- Future> login({required StreamelementsAuthParams params}) {
+ Future> login(
+ {required StreamelementsAuthParams params}) {
return streamelementsUseCase.login(params: params);
}
@@ -35,7 +36,8 @@ class StreamelementsEvents {
return streamelementsUseCase.getOverlays(token, channel);
}
- Future>> getLastActivities(String token, String channel) {
+ Future>> getLastActivities(
+ String token, String channel) {
return streamelementsUseCase.getLastActivities(token, channel);
}
diff --git a/lib/src/presentation/views/home_view.dart b/lib/src/presentation/views/home_view.dart
index e637f937..95c9abfc 100644
--- a/lib/src/presentation/views/home_view.dart
+++ b/lib/src/presentation/views/home_view.dart
@@ -42,7 +42,7 @@ class HomeView extends GetView {
},
child: AnnotatedRegion(
value: SystemUiOverlayStyle(
- systemNavigationBarColor: Theme.of(context).colorScheme.background,
+ systemNavigationBarColor: Theme.of(context).colorScheme.surface,
),
child: Scaffold(
resizeToAvoidBottomInset: true,
@@ -78,7 +78,7 @@ class HomeView extends GetView {
child: Container(
constraints: const BoxConstraints.expand(),
decoration: BoxDecoration(
- color: context.theme.colorScheme.background,
+ color: context.theme.colorScheme.surface,
),
child: SafeArea(
child: Stack(
@@ -162,7 +162,7 @@ class HomeView extends GetView {
Widget _top(BuildContext context, double height, double width) {
return Container(
- color: Theme.of(context).colorScheme.background,
+ color: Theme.of(context).colorScheme.surface,
child: Column(
children: [
_tabBar(context, height, width),
@@ -174,7 +174,7 @@ class HomeView extends GetView {
Widget _bottom(BuildContext context, double height, double width) {
return Container(
- color: Theme.of(context).colorScheme.background,
+ color: Theme.of(context).colorScheme.surface,
child: Stack(
children: [
Listener(
@@ -300,7 +300,8 @@ class HomeView extends GetView {
twitchChats.addAll(
chatViewController.twitchChats.toList());
if (twitchChats.length == 1) {
- controller.sendChatMessage(value, twitchChats.first.channel);
+ controller.sendChatMessage(
+ value, twitchChats.first.channel);
controller.chatInputController.text = '';
FocusScope.of(context).unfocus();
} else {
@@ -345,7 +346,8 @@ class HomeView extends GetView {
.addAll(chatViewController.twitchChats.toList());
if (twitchChats.length == 1) {
controller.sendChatMessage(
- controller.chatInputController.text, twitchChats.first.channel);
+ controller.chatInputController.text,
+ twitchChats.first.channel);
controller.chatInputController.text = '';
FocusScope.of(context).unfocus();
} else {
@@ -381,12 +383,12 @@ class HomeView extends GetView {
Get.dialog(
AlertDialog(
backgroundColor:
- Theme.of(context).colorScheme.background,
+ Theme.of(context).colorScheme.surface,
surfaceTintColor:
- Theme.of(context).colorScheme.background,
+ Theme.of(context).colorScheme.surface,
content: Container(
width: width,
- color: Theme.of(context).colorScheme.background,
+ color: Theme.of(context).colorScheme.surface,
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
@@ -432,12 +434,12 @@ class HomeView extends GetView {
Get.dialog(
AlertDialog(
backgroundColor:
- Theme.of(context).colorScheme.background,
+ Theme.of(context).colorScheme.surface,
surfaceTintColor:
- Theme.of(context).colorScheme.background,
+ Theme.of(context).colorScheme.surface,
content: Container(
width: width,
- color: Theme.of(context).colorScheme.background,
+ color: Theme.of(context).colorScheme.surface,
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
@@ -514,7 +516,7 @@ class HomeView extends GetView {
Widget _tabs(BuildContext context) {
return Expanded(
child: Container(
- color: Theme.of(context).colorScheme.background,
+ color: Theme.of(context).colorScheme.surface,
child: IndexedStack(
index: controller.tabIndex.value,
children: List.generate(
@@ -565,7 +567,7 @@ class HomeView extends GetView {
Widget _chats(BuildContext context) {
return Expanded(
child: Container(
- color: Theme.of(context).colorScheme.background,
+ color: Theme.of(context).colorScheme.surface,
child: TabBarView(
physics: const NeverScrollableScrollPhysics(),
controller: controller.chatTabsController,
diff --git a/lib/src/presentation/views/login_view.dart b/lib/src/presentation/views/login_view.dart
index e99275dc..b611def2 100644
--- a/lib/src/presentation/views/login_view.dart
+++ b/lib/src/presentation/views/login_view.dart
@@ -13,7 +13,7 @@ class LoginView extends GetView {
Get.find();
return Scaffold(
body: Container(
- color: Theme.of(context).colorScheme.background,
+ color: Theme.of(context).colorScheme.surface,
child: SafeArea(
child: Obx(
() => loginScreen(
diff --git a/lib/src/presentation/views/settings_view.dart b/lib/src/presentation/views/settings_view.dart
index f997eddc..d23b30f3 100644
--- a/lib/src/presentation/views/settings_view.dart
+++ b/lib/src/presentation/views/settings_view.dart
@@ -81,7 +81,7 @@ class SettingsView extends GetView {
),
body: Container(
decoration: BoxDecoration(
- color: Theme.of(context).colorScheme.background,
+ color: Theme.of(context).colorScheme.surface,
),
child: ListView(
padding:
@@ -145,7 +145,7 @@ class SettingsView extends GetView {
Widget chatSettings(BuildContext context, double width) {
return Container(
- color: Theme.of(context).colorScheme.background,
+ color: Theme.of(context).colorScheme.surface,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
@@ -316,7 +316,7 @@ class SettingsView extends GetView {
Widget generalSettings(BuildContext context, double width) {
return Container(
- color: Theme.of(context).colorScheme.background,
+ color: Theme.of(context).colorScheme.surface,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
@@ -480,7 +480,7 @@ class SettingsView extends GetView {
Widget connectionsSettings(BuildContext context, double width) {
return Container(
- color: Theme.of(context).colorScheme.background,
+ color: Theme.of(context).colorScheme.surface,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
@@ -537,7 +537,8 @@ class SettingsView extends GetView {
),
const SizedBox(height: 10),
Visibility(
- visible: Platform.isIOS || kDebugMode ||
+ visible: Platform.isIOS ||
+ kDebugMode ||
storeController.storeFound.value &&
storeController.products.isNotEmpty,
child: StreamElements(controller: controller),
@@ -552,7 +553,7 @@ class SettingsView extends GetView {
Widget contactSettings(BuildContext context, double width) {
return Container(
- color: Theme.of(context).colorScheme.background,
+ color: Theme.of(context).colorScheme.surface,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
diff --git a/lib/src/presentation/widgets/chats/chat_message/kick/kick_emote.dart b/lib/src/presentation/widgets/chats/chat_message/kick/kick_emote.dart
index 1f8c7841..16911c17 100644
--- a/lib/src/presentation/widgets/chats/chat_message/kick/kick_emote.dart
+++ b/lib/src/presentation/widgets/chats/chat_message/kick/kick_emote.dart
@@ -10,8 +10,7 @@ class KickEmote extends StatelessWidget {
return Image(
height: 24,
width: 24,
- image: NetworkImage(
- "https://files.kick.com/emotes/$emoteId/fullsize"),
+ image: NetworkImage("https://files.kick.com/emotes/$emoteId/fullsize"),
);
}
}
diff --git a/lib/src/presentation/widgets/chats/chat_message/shared/author_name.dart b/lib/src/presentation/widgets/chats/chat_message/shared/author_name.dart
index 0806fe7d..db7603aa 100644
--- a/lib/src/presentation/widgets/chats/chat_message/shared/author_name.dart
+++ b/lib/src/presentation/widgets/chats/chat_message/shared/author_name.dart
@@ -31,7 +31,10 @@ class AuthorName extends StatelessWidget {
),
children: [
TextSpan(
- text: username != displayName.toLowerCase() && platform == Platform.twitch ? "($displayName)" : "",
+ text: username != displayName.toLowerCase() &&
+ platform == Platform.twitch
+ ? "($displayName)"
+ : "",
style: TextStyle(
color: Color(int.parse(color.replaceAll('#', '0xff'))),
fontSize: textSize,
diff --git a/lib/src/presentation/widgets/chats/chat_message/shared/message_container.dart b/lib/src/presentation/widgets/chats/chat_message/shared/message_container.dart
index e717075c..4193bf1d 100644
--- a/lib/src/presentation/widgets/chats/chat_message/shared/message_container.dart
+++ b/lib/src/presentation/widgets/chats/chat_message/shared/message_container.dart
@@ -34,7 +34,7 @@ class MessageContainer extends StatelessWidget {
decoration: BoxDecoration(
color: selectedMessage != null && selectedMessage == message
? Theme.of(Get.context!).colorScheme.secondary
- : Theme.of(Get.context!).colorScheme.background,
+ : Theme.of(Get.context!).colorScheme.surface,
),
child: MessageRow(
message: message,
diff --git a/lib/src/presentation/widgets/chats/chat_message/twitch/moderation_bottom_sheet.dart b/lib/src/presentation/widgets/chats/chat_message/twitch/moderation_bottom_sheet.dart
index 19d3269c..7a3b0895 100644
--- a/lib/src/presentation/widgets/chats/chat_message/twitch/moderation_bottom_sheet.dart
+++ b/lib/src/presentation/widgets/chats/chat_message/twitch/moderation_bottom_sheet.dart
@@ -50,9 +50,11 @@ class ModerationBottomSheet extends StatelessWidget {
onTap: () => launchUrl(
Uri(
scheme: "https",
- host: message.platform == Platform.twitch ? "twitch.tv" : 'kick.com',
- path: controller.homeViewController.selectedMessage
- .value?.username,
+ host: message.platform == Platform.twitch
+ ? "twitch.tv"
+ : 'kick.com',
+ path: controller
+ .homeViewController.selectedMessage.value?.username,
),
mode: LaunchMode.externalApplication,
),
diff --git a/lib/src/presentation/widgets/chats/chat_view.dart b/lib/src/presentation/widgets/chats/chat_view.dart
index 04fe0c4a..9d601407 100644
--- a/lib/src/presentation/widgets/chats/chat_view.dart
+++ b/lib/src/presentation/widgets/chats/chat_view.dart
@@ -43,7 +43,7 @@ class ChatView extends StatelessWidget {
onDoubleTap: () {
// Open a confirmation dialog to reconnect to the chat
Get.defaultDialog(
- backgroundColor: Theme.of(context).colorScheme.background,
+ backgroundColor: Theme.of(context).colorScheme.surface,
title: "Confirmation",
middleText: "Do you want to reconnect ?",
textConfirm: "Yes",
@@ -69,74 +69,68 @@ class ChatView extends StatelessWidget {
height: double.infinity,
padding: EdgeInsets.only(top: 10, bottom: height * 0.07),
decoration: BoxDecoration(
- color: Theme.of(context).colorScheme.background,
+ color: Theme.of(context).colorScheme.surface,
),
child: ListView.builder(
- controller: controller?.scrollController,
- itemCount: controller?.chatMessages.length,
- itemBuilder: (BuildContext context, int index) {
- ChatMessage message = controller!.chatMessages[index];
- return Container(
- padding: const EdgeInsets.only(top: 1, bottom: 1),
- child: InkWell(
- onTap: () {
- if (FocusScope.of(context).isFirstFocus) {
- FocusScope.of(context).unfocus();
- }
- controller!.homeViewController.selectedMessage
- .value = null;
- },
- onLongPress: () {
- controller!.homeViewController.selectedMessage
- .value ??= message;
- },
- child: message.eventType != null
- ? EventContainer(
- message: message,
- selectedMessage: controller
- .homeViewController.selectedMessage.value,
- displayTimestamp: controller
- .homeViewController
- .settings
- .value
- .displayTimestamp!,
- textSize: controller.homeViewController
- .settings.value.textSize!,
- hideDeletedMessages: controller
- .homeViewController
- .settings
- .value
- .chatSettings!
- .hideDeletedMessages,
- cheerEmotes: controller.cheerEmotes,
- thirdPartEmotes: controller.thirdPartEmotes,
- showPlatformBadge: multiplePlatform,
- )
- : MessageContainer(
- selectedMessage: controller
- .homeViewController.selectedMessage.value,
- message: message,
- displayTimestamp: controller
- .homeViewController
- .settings
- .value
- .displayTimestamp!,
- textSize: controller.homeViewController
- .settings.value.textSize!,
- hideDeletedMessages: controller
- .homeViewController
- .settings
- .value
- .chatSettings!
- .hideDeletedMessages,
- cheerEmotes: controller.cheerEmotes,
- thirdPartEmotes: controller.thirdPartEmotes,
- showPlatformBadge: multiplePlatform,
- ),
- ),
- );
+ controller: controller?.scrollController,
+ itemCount: controller?.chatMessages.length,
+ itemBuilder: (BuildContext context, int index) {
+ ChatMessage message = controller!.chatMessages[index];
+ return Container(
+ padding: const EdgeInsets.only(top: 1, bottom: 1),
+ child: InkWell(
+ onTap: () {
+ if (FocusScope.of(context).isFirstFocus) {
+ FocusScope.of(context).unfocus();
+ }
+ controller!.homeViewController.selectedMessage.value =
+ null;
},
+ onLongPress: () {
+ controller!.homeViewController.selectedMessage.value ??=
+ message;
+ },
+ child: message.eventType != null
+ ? EventContainer(
+ message: message,
+ selectedMessage: controller
+ .homeViewController.selectedMessage.value,
+ displayTimestamp: controller.homeViewController
+ .settings.value.displayTimestamp!,
+ textSize: controller
+ .homeViewController.settings.value.textSize!,
+ hideDeletedMessages: controller
+ .homeViewController
+ .settings
+ .value
+ .chatSettings!
+ .hideDeletedMessages,
+ cheerEmotes: controller.cheerEmotes,
+ thirdPartEmotes: controller.thirdPartEmotes,
+ showPlatformBadge: multiplePlatform,
+ )
+ : MessageContainer(
+ selectedMessage: controller
+ .homeViewController.selectedMessage.value,
+ message: message,
+ displayTimestamp: controller.homeViewController
+ .settings.value.displayTimestamp!,
+ textSize: controller
+ .homeViewController.settings.value.textSize!,
+ hideDeletedMessages: controller
+ .homeViewController
+ .settings
+ .value
+ .chatSettings!
+ .hideDeletedMessages,
+ cheerEmotes: controller.cheerEmotes,
+ thirdPartEmotes: controller.thirdPartEmotes,
+ showPlatformBadge: multiplePlatform,
+ ),
),
+ );
+ },
+ ),
),
),
Positioned(
@@ -176,8 +170,8 @@ class ChatView extends StatelessWidget {
: const Offset(0, 1),
duration: const Duration(milliseconds: 200),
child: Visibility(
- visible:
- controller != null && controller.homeViewController.selectedMessage.value != null,
+ visible: controller != null &&
+ controller.homeViewController.selectedMessage.value != null,
child:
ModerationBottomSheet(controller: controller!, width: width),
),
diff --git a/lib/src/presentation/widgets/dashboard.dart b/lib/src/presentation/widgets/dashboard.dart
index 4a1dc249..fe9004e1 100644
--- a/lib/src/presentation/widgets/dashboard.dart
+++ b/lib/src/presentation/widgets/dashboard.dart
@@ -41,7 +41,8 @@ class Dashboard extends GetView {
.value.dashboardSettings!.userEvents[index];
// Check if the event is still supported
if (event.event == SupportedEvents.none) {
- return _disabledServiceEvent(event, "Event not supported anymore");
+ return _disabledServiceEvent(
+ event, "Event not supported anymore");
}
// Check if the service is enabled
bool isServiceEnabled = isDashboardServiceEnabled(event);
diff --git a/lib/src/presentation/widgets/hype_train.dart b/lib/src/presentation/widgets/hype_train.dart
index 003f8351..897aaf8e 100644
--- a/lib/src/presentation/widgets/hype_train.dart
+++ b/lib/src/presentation/widgets/hype_train.dart
@@ -1,4 +1,3 @@
-
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:irllink/src/core/utils/print_duration.dart';
diff --git a/lib/src/presentation/widgets/settings/chat_events.dart b/lib/src/presentation/widgets/settings/chat_events.dart
index c9482224..8ed786b0 100644
--- a/lib/src/presentation/widgets/settings/chat_events.dart
+++ b/lib/src/presentation/widgets/settings/chat_events.dart
@@ -15,7 +15,7 @@ class ChatEvents extends StatelessWidget {
Widget build(BuildContext context) {
return Obx(
() => Scaffold(
- backgroundColor: Theme.of(context).colorScheme.background,
+ backgroundColor: Theme.of(context).colorScheme.surface,
appBar: AppBar(
leading: IconButton(
icon: Icon(
@@ -38,7 +38,7 @@ class ChatEvents extends StatelessWidget {
child: Container(
padding:
const EdgeInsets.only(top: 8, left: 10, right: 10, bottom: 8),
- color: Theme.of(context).colorScheme.background,
+ color: Theme.of(context).colorScheme.surface,
child: Column(
children: [
Column(
diff --git a/lib/src/presentation/widgets/settings/chats_joined.dart b/lib/src/presentation/widgets/settings/chats_joined.dart
index 5aa007eb..11a23af6 100644
--- a/lib/src/presentation/widgets/settings/chats_joined.dart
+++ b/lib/src/presentation/widgets/settings/chats_joined.dart
@@ -35,7 +35,7 @@ class ChatsJoined extends GetView {
),
body: Container(
decoration: BoxDecoration(
- color: Theme.of(context).colorScheme.background,
+ color: Theme.of(context).colorScheme.surface,
),
child: Column(
children: [
@@ -222,7 +222,7 @@ class ChatsJoined extends GetView {
titleStyle: TextStyle(
color: Theme.of(context).textTheme.bodyLarge!.color,
),
- backgroundColor: Theme.of(context).colorScheme.background,
+ backgroundColor: Theme.of(context).colorScheme.surface,
buttonColor: const Color(0xFF9147ff),
cancelTextColor: const Color(0xFF9147ff),
confirmTextColor: Colors.white,
diff --git a/lib/src/presentation/widgets/settings/dashboard_settings_view.dart b/lib/src/presentation/widgets/settings/dashboard_settings_view.dart
index eaf9dc8f..de502aab 100644
--- a/lib/src/presentation/widgets/settings/dashboard_settings_view.dart
+++ b/lib/src/presentation/widgets/settings/dashboard_settings_view.dart
@@ -57,7 +57,7 @@ class DashboardSettingsView extends GetView {
body: Container(
padding: const EdgeInsets.all(10),
decoration: BoxDecoration(
- color: Theme.of(context).colorScheme.background,
+ color: Theme.of(context).colorScheme.surface,
),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
@@ -93,7 +93,7 @@ class DashboardSettingsView extends GetView {
children: [
SlidableAction(
backgroundColor:
- Theme.of(context).colorScheme.background,
+ Theme.of(context).colorScheme.surface,
onPressed: (context) {
dashboardController.removeDashboardEvent(event);
},
@@ -141,10 +141,10 @@ class DashboardSettingsView extends GetView {
),
TextButton(
style: ButtonStyle(
- backgroundColor: MaterialStateProperty.all(
+ backgroundColor: WidgetStateProperty.all(
Theme.of(context).colorScheme.secondary,
),
- foregroundColor: MaterialStateProperty.all(
+ foregroundColor: WidgetStateProperty.all(
Theme.of(context).textTheme.bodyLarge!.color,
),
),
@@ -157,7 +157,7 @@ class DashboardSettingsView extends GetView {
titleStyle: TextStyle(
color: Theme.of(context).textTheme.bodyLarge!.color,
),
- backgroundColor: Theme.of(context).colorScheme.background,
+ backgroundColor: Theme.of(context).colorScheme.surface,
buttonColor: const Color(0xFF9147ff),
cancelTextColor: const Color(0xFF9147ff),
confirmTextColor: Colors.white,
@@ -312,10 +312,10 @@ Widget _addDialog(context, DashboardController dashboardController) {
),
ElevatedButton(
style: ButtonStyle(
- backgroundColor: MaterialStateProperty.all(
+ backgroundColor: WidgetStateProperty.all(
Theme.of(context).colorScheme.tertiary,
),
- foregroundColor: MaterialStateProperty.all(
+ foregroundColor: WidgetStateProperty.all(
Theme.of(context).textTheme.bodyLarge!.color,
),
),
@@ -344,7 +344,7 @@ Widget colorPickerPreview(Color color, Function(Color) onColorChanged) {
onTap: () {
Get.defaultDialog(
title: 'Pick a color!',
- backgroundColor: Theme.of(Get.context!).colorScheme.background,
+ backgroundColor: Theme.of(Get.context!).colorScheme.surface,
content: BlockPicker(
pickerColor: color,
onColorChanged: onColorChanged,
diff --git a/lib/src/presentation/widgets/settings/dialogs/in_app_purchase_dialog.dart b/lib/src/presentation/widgets/settings/dialogs/in_app_purchase_dialog.dart
index e7ac9990..e1198d89 100644
--- a/lib/src/presentation/widgets/settings/dialogs/in_app_purchase_dialog.dart
+++ b/lib/src/presentation/widgets/settings/dialogs/in_app_purchase_dialog.dart
@@ -15,7 +15,7 @@ Widget inAppPurchaseDialog(
height: 400,
padding: const EdgeInsets.only(left: 10, right: 10),
decoration: BoxDecoration(
- color: Theme.of(context).colorScheme.background,
+ color: Theme.of(context).colorScheme.surface,
borderRadius: const BorderRadius.all(
Radius.circular(8),
),
diff --git a/lib/src/presentation/widgets/settings/manage_list_browser_tabs.dart b/lib/src/presentation/widgets/settings/manage_list_browser_tabs.dart
index fcd5ad81..2420254b 100644
--- a/lib/src/presentation/widgets/settings/manage_list_browser_tabs.dart
+++ b/lib/src/presentation/widgets/settings/manage_list_browser_tabs.dart
@@ -52,7 +52,7 @@ class ManageListBrowserTabs extends GetView {
),
body: Container(
decoration: BoxDecoration(
- color: Theme.of(context).colorScheme.background,
+ color: Theme.of(context).colorScheme.surface,
),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
@@ -132,7 +132,7 @@ class ManageListBrowserTabs extends GetView {
),
backgroundColor: Theme.of(context)
.colorScheme
- .background,
+ .surface,
buttonColor:
const Color(0xFF9147ff),
cancelTextColor:
@@ -163,7 +163,7 @@ class ManageListBrowserTabs extends GetView {
),
backgroundColor: Theme.of(context)
.colorScheme
- .background,
+ .surface,
buttonColor:
const Color(0xFF9147ff),
cancelTextColor:
@@ -226,7 +226,7 @@ class ManageListBrowserTabs extends GetView {
Theme.of(context).textTheme.bodyLarge!.color,
),
backgroundColor:
- Theme.of(context).colorScheme.background,
+ Theme.of(context).colorScheme.surface,
buttonColor: const Color(0xFF9147ff),
cancelTextColor: const Color(0xFF9147ff),
confirmTextColor: Colors.white,
diff --git a/lib/src/presentation/widgets/settings/manage_list_hidden_users.dart b/lib/src/presentation/widgets/settings/manage_list_hidden_users.dart
index 58003b98..d5651788 100644
--- a/lib/src/presentation/widgets/settings/manage_list_hidden_users.dart
+++ b/lib/src/presentation/widgets/settings/manage_list_hidden_users.dart
@@ -36,7 +36,7 @@ class ManageListHiddenUsers extends GetView {
),
body: Container(
decoration: BoxDecoration(
- color: Theme.of(context).colorScheme.background,
+ color: Theme.of(context).colorScheme.surface,
),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
diff --git a/lib/src/presentation/widgets/settings/tts.dart b/lib/src/presentation/widgets/settings/tts.dart
index 5673ca56..d906776b 100644
--- a/lib/src/presentation/widgets/settings/tts.dart
+++ b/lib/src/presentation/widgets/settings/tts.dart
@@ -13,7 +13,7 @@ class Tts extends StatelessWidget {
Widget build(BuildContext context) {
return Obx(
() => Scaffold(
- backgroundColor: Theme.of(context).colorScheme.background,
+ backgroundColor: Theme.of(context).colorScheme.surface,
appBar: AppBar(
leading: IconButton(
icon: Icon(
@@ -36,7 +36,7 @@ class Tts extends StatelessWidget {
child: Container(
padding:
const EdgeInsets.only(top: 8, left: 10, right: 10, bottom: 8),
- color: Theme.of(context).colorScheme.background,
+ color: Theme.of(context).colorScheme.surface,
child: Column(
children: [
Row(
@@ -117,7 +117,8 @@ class Tts extends StatelessWidget {
),
),
DropdownButton(
- value: controller.ttsController.ttsVoices.firstWhere(
+ value:
+ controller.ttsController.ttsVoices.firstWhere(
(element) =>
element["name"] ==
controller.homeViewController.settings.value
@@ -140,9 +141,10 @@ class Tts extends StatelessWidget {
items: List.generate(
controller.ttsController.ttsVoices.length,
(index) => DropdownMenuItem(
- value: controller.ttsController.ttsVoices[index],
- child:
- Text(controller.ttsController.ttsVoices[index]["name"]),
+ value:
+ controller.ttsController.ttsVoices[index],
+ child: Text(controller
+ .ttsController.ttsVoices[index]["name"]),
),
),
),
diff --git a/lib/src/presentation/widgets/stream_elements/se_song_requests.dart b/lib/src/presentation/widgets/stream_elements/se_song_requests.dart
index d4b84d8c..1ead2f71 100644
--- a/lib/src/presentation/widgets/stream_elements/se_song_requests.dart
+++ b/lib/src/presentation/widgets/stream_elements/se_song_requests.dart
@@ -1,4 +1,3 @@
-import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:irllink/src/domain/entities/stream_elements/se_song.dart';
@@ -30,9 +29,12 @@ class SeSongRequests extends GetView {
// const Icon(Icons.skip_previous),
InkWell(
onTap: () {
- controller.updatePlayerState(controller.isPlaying.value ? 'pause' : 'play');
+ controller.updatePlayerState(
+ controller.isPlaying.value ? 'pause' : 'play');
},
- child: controller.isPlaying.value ? const Icon(Icons.pause) : const Icon(Icons.play_arrow_outlined),
+ child: controller.isPlaying.value
+ ? const Icon(Icons.pause)
+ : const Icon(Icons.play_arrow_outlined),
),
InkWell(
onTap: () {
diff --git a/lib/src/presentation/widgets/tabs/dialogs/slow_mode_dialog.dart b/lib/src/presentation/widgets/tabs/dialogs/slow_mode_dialog.dart
index eeccce2a..9d11674d 100644
--- a/lib/src/presentation/widgets/tabs/dialogs/slow_mode_dialog.dart
+++ b/lib/src/presentation/widgets/tabs/dialogs/slow_mode_dialog.dart
@@ -21,7 +21,7 @@ Widget slowModeDialog(
Container(
padding: const EdgeInsets.all(10),
decoration: BoxDecoration(
- color: Theme.of(context).colorScheme.background,
+ color: Theme.of(context).colorScheme.surface,
borderRadius: const BorderRadius.all(
Radius.circular(8),
),
diff --git a/lib/src/presentation/widgets/tabs/obs_tab_view.dart b/lib/src/presentation/widgets/tabs/obs_tab_view.dart
index e18cd63e..ead00d56 100644
--- a/lib/src/presentation/widgets/tabs/obs_tab_view.dart
+++ b/lib/src/presentation/widgets/tabs/obs_tab_view.dart
@@ -17,7 +17,7 @@ class ObsTabView extends GetView {
() => controller.isConnected.value
? Container(
padding: const EdgeInsets.only(left: 8, top: 10, right: 8),
- color: context.theme.colorScheme.background,
+ color: context.theme.colorScheme.surface,
child: Column(
children: [
SizedBox(
@@ -215,7 +215,7 @@ class ObsTabView extends GetView {
),
)
: Container(
- color: context.theme.colorScheme.background,
+ color: context.theme.colorScheme.surface,
child: Column(
children: [
AlertMessageView(
diff --git a/lib/src/presentation/widgets/tabs/streamelements_tab_view.dart b/lib/src/presentation/widgets/tabs/streamelements_tab_view.dart
index 88c92cac..128aae48 100644
--- a/lib/src/presentation/widgets/tabs/streamelements_tab_view.dart
+++ b/lib/src/presentation/widgets/tabs/streamelements_tab_view.dart
@@ -38,7 +38,7 @@ class StreamelementsTabView extends GetView {
Expanded(
child: Container(
decoration: BoxDecoration(
- color: context.theme.colorScheme.background,
+ color: context.theme.colorScheme.surface,
),
child: TabBarView(
controller: controller.tabController,
diff --git a/lib/src/presentation/widgets/tabs/twitch_tab_view.dart b/lib/src/presentation/widgets/tabs/twitch_tab_view.dart
index 9d05d2fc..b330f7a6 100644
--- a/lib/src/presentation/widgets/tabs/twitch_tab_view.dart
+++ b/lib/src/presentation/widgets/tabs/twitch_tab_view.dart
@@ -23,7 +23,7 @@ class TwitchTabView extends GetView {
() => Container(
padding: const EdgeInsets.only(
left: 20.0, top: 12.0, right: 20.0, bottom: 12.0),
- color: Theme.of(context).colorScheme.background,
+ color: Theme.of(context).colorScheme.surface,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
diff --git a/pubspec.lock b/pubspec.lock
index 857c8171..8f4fd068 100644
--- a/pubspec.lock
+++ b/pubspec.lock
@@ -669,26 +669,26 @@ packages:
dependency: transitive
description:
name: leak_tracker
- sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa"
+ sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a"
url: "https://pub.dev"
source: hosted
- version: "10.0.0"
+ version: "10.0.4"
leak_tracker_flutter_testing:
dependency: transitive
description:
name: leak_tracker_flutter_testing
- sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0
+ sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8"
url: "https://pub.dev"
source: hosted
- version: "2.0.1"
+ version: "3.0.3"
leak_tracker_testing:
dependency: transitive
description:
name: leak_tracker_testing
- sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47
+ sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
url: "https://pub.dev"
source: hosted
- version: "2.0.1"
+ version: "3.0.1"
lints:
dependency: transitive
description:
@@ -733,10 +733,10 @@ packages:
dependency: transitive
description:
name: meta
- sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04
+ sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136"
url: "https://pub.dev"
source: hosted
- version: "1.11.0"
+ version: "1.12.0"
mime:
dependency: transitive
description:
@@ -1114,10 +1114,10 @@ packages:
dependency: transitive
description:
name: test_api
- sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
+ sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f"
url: "https://pub.dev"
source: hosted
- version: "0.6.1"
+ version: "0.7.0"
timezone:
dependency: transitive
description:
@@ -1290,10 +1290,10 @@ packages:
dependency: transitive
description:
name: vm_service
- sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957
+ sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec"
url: "https://pub.dev"
source: hosted
- version: "13.0.0"
+ version: "14.2.1"
wakelock:
dependency: "direct main"
description:
diff --git a/test/widget_test.dart b/test/widget_test.dart
index 2b3c29cc..8a79033e 100644
--- a/test/widget_test.dart
+++ b/test/widget_test.dart
@@ -14,8 +14,8 @@ import 'package:talker_flutter/talker_flutter.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
final talker = TalkerFlutter.init(
- settings: TalkerSettings(),
- );
+ settings: TalkerSettings(),
+ );
// Build our app and trigger a frame.
await tester.pumpWidget(Main(talker: talker));
From d8b3523467857f3561076db9fb0768d1cfa0baa5 Mon Sep 17 00:00:00 2001
From: SputNikPlop <100245448+SputNikPlop@users.noreply.github.com>
Date: Fri, 24 May 2024 00:54:09 -0700
Subject: [PATCH 2/2] fix: proj format
---
{assets => lib/assets}/apple-download.svg | 0
{assets => lib/assets}/google-play-badge.png | Bin
2 files changed, 0 insertions(+), 0 deletions(-)
rename {assets => lib/assets}/apple-download.svg (100%)
rename {assets => lib/assets}/google-play-badge.png (100%)
diff --git a/assets/apple-download.svg b/lib/assets/apple-download.svg
similarity index 100%
rename from assets/apple-download.svg
rename to lib/assets/apple-download.svg
diff --git a/assets/google-play-badge.png b/lib/assets/google-play-badge.png
similarity index 100%
rename from assets/google-play-badge.png
rename to lib/assets/google-play-badge.png