INNER CODE UNIT · Dart
selected
lollipopkit/flutter_gpt_box · lib/intro.dart:49
final selected = await ctx.showPickSingleDialog(
title: libL10n.language,
items: AppLocalizations.supportedLocales,
display: (p0) => p0.nativeName,
initial: _setting.locale.get().toLocale,
);
if (selected != null) {
_setting.locale.set(selected.code);
RNodes.app.notify(delay: true);
}
},
trailing: Text(
l10n.languageName,
style: const TextStyle(fontSize: 15, color: Colors.grey),
),
).cardx,
ListTile(
leading: const Icon(Icons.update),