chore: Follow up emote settings

This commit is contained in:
krille-chan 2025-11-20 19:56:03 +01:00
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 @override
void initState() { void initState() {
super.initState(); super.initState();
stateKey = packKeys?.first; stateKey = packKeys?.firstOrNull;
} }
void setStateKey(String key) { void setStateKey(String key) {

View file

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