forked from firka/student-legacy
Hiba ablak szövegének megváltoztatása. (2)
This commit is contained in:
parent
e1870b08e5
commit
cad7bd19dc
@ -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,
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user