Skip to content

Commit

Permalink
various improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
EricApostal committed Dec 15, 2024
1 parent 883cb11 commit d77b73f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
11 changes: 6 additions & 5 deletions lib/features/auth/views/credentials.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class _LoginState extends ConsumerState<CredentialsScreen> {
void dispose() {
usernameController.dispose();
passwordController.dispose();
fireviewController.dispose();
super.dispose();
}

Expand Down Expand Up @@ -166,12 +167,12 @@ class _LoginState extends ConsumerState<CredentialsScreen> {
),
Padding(
padding: EdgeInsets.only(
bottom: bottomPadding,
),
child: ConfirmButton(
text: "CONFIRM",
onPressed: submitCredentials,
bottom: bottomPadding + 12,
),
// child: ConfirmButton(
// text: "CONFIRM",
// onPressed: submitCredentials,
// ),
),
],
),
Expand Down
3 changes: 2 additions & 1 deletion lib/features/channels/repositories/channels.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ class Channels extends _$Channels {
}

Future<void> saveToCache(List<Channel> channels) async {
Guild guild = ref.watch(guildControllerProvider(guildId)).valueOrNull!;
Guild? guild = ref.watch(guildControllerProvider(guildId)).valueOrNull;
if (guild == null) return;
var cacheKey = "channels_${guild.id.value}";
await _cacheManager.putFile(
cacheKey,
Expand Down
2 changes: 1 addition & 1 deletion lib/features/me/views/components/private_messages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class _PrivateMessagesState extends ConsumerState<PrivateMessages> {
);
}
return DirectMessageMember(
privateChannel: dms[index],
privateChannel: dms[index - 1],
currentChannelId: widget.channelId,
);
},
Expand Down

0 comments on commit d77b73f

Please sign in to comment.