Hiba ablak szövegének megváltoztatása. (2)

This commit is contained in:
balint1414 2024-06-14 10:56:15 +02:00
parent e1870b08e5
commit cad7bd19dc
2 changed files with 22 additions and 22 deletions

View File

@ -37,27 +37,27 @@ class ErrorReportScreen extends StatelessWidget {
),
),
),
//FutureBuilder<String>(
// future: dirtyString(),
// builder: (context, snapshot) {
// if (snapshot.connectionState == ConnectionState.waiting) {
// return const CircularProgressIndicator();
// }
// if (snapshot.hasError) {
// return Text("Error: ${snapshot.error}");
// }
// return Text(
// snapshot.data ?? "",
// textAlign: TextAlign.center,
// style: TextStyle(
// color: AppColors.of(context).text,
// fontSize: 24.0,
// fontWeight: FontWeight.w700,
// fontStyle: FontStyle.italic,
// ),
// );
// },
//),
FutureBuilder<String>(
future: dirtyString(),
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.waiting) {
return const CircularProgressIndicator();
}
if (snapshot.hasError) {
return Text("Error: ${snapshot.error}");
}
return Text(
snapshot.data ?? "",
textAlign: TextAlign.center,
style: TextStyle(
color: AppColors.of(context).text,
fontSize: 24.0,
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
),
);
},
),
const SizedBox(height: 16),
Text(
"smth_went_wrong".i18n,

View File

@ -51,4 +51,4 @@ extension SettingsLocalization on String {
String fill(List<Object> params) => localizeFill(this, params);
String plural(int value) => localizePlural(value, this, _t);
String version(Object modifier) => localizeVersion(modifier, this, _t);
}
}