From 171a1f677d7ad5e850f7fc5b348f718c8fce3aae Mon Sep 17 00:00:00 2001 From: "J. A. Messias" Date: Wed, 29 Jan 2025 15:29:29 -0300 Subject: [PATCH] refix --- .../home/presentation/pages/about_system.dart | 40 ++++++++++--------- lib/initialization.dart | 5 +-- 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/lib/features/home/presentation/pages/about_system.dart b/lib/features/home/presentation/pages/about_system.dart index 31438508..577348e7 100644 --- a/lib/features/home/presentation/pages/about_system.dart +++ b/lib/features/home/presentation/pages/about_system.dart @@ -58,8 +58,7 @@ class _AboutSystemPageState extends State { ); } - PreferredSizeWidget _buildAppBar( - BuildContext context, FlutterFlowTheme theme) { + PreferredSizeWidget _buildAppBar(BuildContext context, FlutterFlowTheme theme) { return AppBar( backgroundColor: theme.primaryBackground, automaticallyImplyLeading: false, @@ -97,8 +96,7 @@ class _AboutSystemPageState extends State { fontSize: 16.0, fontWeight: FontWeight.bold, letterSpacing: 0.0, - useGoogleFonts: GoogleFonts.asMap() - .containsKey(FlutterFlowTheme.of(context).headlineMediumFamily), + useGoogleFonts: GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).headlineMediumFamily), ), ); } @@ -128,20 +126,25 @@ class _AboutSystemPageState extends State { } Widget _buildLogo() { - return GestureDetector( - onTap: () { - final exception = Exception('Crashando'); - final stackTrace = Trace.current(); - LogUtil.requestAPIFailed("proccessRequest.php", "", "Consulta de Pets", - exception, stackTrace); - FirebaseCrashlytics.instance.crash(); - }, - child: SizedBox( - height: 100, - width: 100, - child: Image.asset('assets/images/fre.png'), - ), + return SizedBox( + height: 100, + width: 100, + child: Image.asset('assets/images/fre.png'), ); + // return GestureDetector( + // onTap: () { + // final exception = Exception('Crashando'); + // final stackTrace = Trace.current(); + // LogUtil.requestAPIFailed("proccessRequest.php", "", "Consulta de Pets", + // exception, stackTrace); + // FirebaseCrashlytics.instance.crash(); + // }, + // child: SizedBox( + // height: 100, + // width: 100, + // child: Image.asset('assets/images/fre.png'), + // ), + // ); } Widget _buildLaunch() { @@ -164,8 +167,7 @@ class _AboutSystemPageState extends State { color: theme.primaryText, fontSize: 16.0, letterSpacing: 0.0, - useGoogleFonts: - GoogleFonts.asMap().containsKey(theme.headlineMediumFamily), + useGoogleFonts: GoogleFonts.asMap().containsKey(theme.headlineMediumFamily), ), ); } diff --git a/lib/initialization.dart b/lib/initialization.dart index f99de313..21594416 100644 --- a/lib/initialization.dart +++ b/lib/initialization.dart @@ -55,11 +55,10 @@ Future _initializeSystemSettings() async { final crashlyticsInstance = FirebaseCrashlytics.instance; await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]); - if (false) { + if (kDebugMode) { //kDebugMode print('Debug mode'); - bool unsentReports = - await FirebaseCrashlytics.instance.checkForUnsentReports(); + bool unsentReports = await FirebaseCrashlytics.instance.checkForUnsentReports(); if (unsentReports) { // Existem relatórios não enviados await crashlyticsInstance.sendUnsentReports();