chore: localize error display in device settings view (#5803)
This commit is contained in:
parent
81dbffd031
commit
cd596a6b4f
1 changed files with 5 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:fluffychat/config/themes.dart';
|
||||
import 'package:fluffychat/l10n/l10n.dart';
|
||||
import 'package:fluffychat/pages/device_settings/device_settings.dart';
|
||||
import 'package:fluffychat/utils/localized_exception_extension.dart';
|
||||
import 'package:fluffychat/widgets/layouts/max_width_body.dart';
|
||||
import 'user_device_list_item.dart';
|
||||
|
||||
|
|
@ -30,7 +31,10 @@ class DevicesSettingsView extends StatelessWidget {
|
|||
mainAxisSize: .min,
|
||||
children: <Widget>[
|
||||
const Icon(Icons.error_outlined),
|
||||
Text(snapshot.error.toString()),
|
||||
// #Pangea
|
||||
// Text(snapshot.error.toString()),
|
||||
Text(snapshot.error!.toLocalizedString(context)),
|
||||
// Pangea#
|
||||
],
|
||||
),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue