chore: Follow up emote settings

This commit is contained in:
krille-chan 2025-11-20 19:56:03 +01:00
parent 3c86da7932
commit 43c5c35fcc
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ class EmotesSettingsController extends State<EmotesSettings> {
@override
void initState() {
super.initState();
stateKey = packKeys?.first;
stateKey = packKeys?.firstOrNull;
}
void setStateKey(String key) {

View file

@ -71,7 +71,7 @@ class EmotesSettingsView extends StatelessWidget {
],
),
],
bottom: packKeys == null
bottom: packKeys == null || packKeys.isEmpty
? null
: PreferredSize(
preferredSize: const Size.fromHeight(48),