fix: a render flex overflowed warning from dde data table.
This commit is contained in:
@@ -755,7 +755,7 @@ class _DDataTableState extends State<DDataTable> {
|
||||
textDirection: numeric ? TextDirection.rtl : null,
|
||||
mainAxisAlignment: center ? MainAxisAlignment.spaceAround : MainAxisAlignment.start,
|
||||
children: <Widget>[
|
||||
label,
|
||||
Flexible(child: label),
|
||||
if (onSort != null) ...<Widget>[
|
||||
_SortArrow(
|
||||
visible: sorted,
|
||||
|
||||
@@ -44,7 +44,6 @@ class LanguageSwitcher extends StatelessWidget {
|
||||
),
|
||||
onTap: () {
|
||||
EasyLocalization.of(context)?.setLocale(locale).then((_) {
|
||||
context.locale.sout();
|
||||
var localeMap = Translations(CodegenLoader.mapLocales[context.locale.toString()]!);
|
||||
if (!kIsWeb) WindowManager.instance.setTitle(localeMap.get(LocaleKeys.app_name)!);
|
||||
var localSchemesProvider = context.read<LocalSchemesProvider>();
|
||||
|
||||
Reference in New Issue
Block a user