diff --git a/refilc_mobile_ui/lib/screens/error_report_screen.dart b/refilc_mobile_ui/lib/screens/error_report_screen.dart index 458ba0d..04e706f 100644 --- a/refilc_mobile_ui/lib/screens/error_report_screen.dart +++ b/refilc_mobile_ui/lib/screens/error_report_screen.dart @@ -37,27 +37,27 @@ class ErrorReportScreen extends StatelessWidget { ), ), ), - //FutureBuilder( - // 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( + 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, diff --git a/refilc_mobile_ui/lib/screens/error_report_screen.i18n.dart b/refilc_mobile_ui/lib/screens/error_report_screen.i18n.dart index a198376..0e3e1c5 100644 --- a/refilc_mobile_ui/lib/screens/error_report_screen.i18n.dart +++ b/refilc_mobile_ui/lib/screens/error_report_screen.i18n.dart @@ -51,4 +51,4 @@ extension SettingsLocalization on String { String fill(List params) => localizeFill(this, params); String plural(int value) => localizePlural(value, this, _t); String version(Object modifier) => localizeVersion(modifier, this, _t); -} +} \ No newline at end of file