This commit is contained in:
J. A. Messias 2025-01-29 15:29:29 -03:00
parent f190c21751
commit 171a1f677d
2 changed files with 23 additions and 22 deletions

View File

@ -58,8 +58,7 @@ class _AboutSystemPageState extends State<AboutSystemPage> {
);
}
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<AboutSystemPage> {
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<AboutSystemPage> {
}
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(
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<AboutSystemPage> {
color: theme.primaryText,
fontSize: 16.0,
letterSpacing: 0.0,
useGoogleFonts:
GoogleFonts.asMap().containsKey(theme.headlineMediumFamily),
useGoogleFonts: GoogleFonts.asMap().containsKey(theme.headlineMediumFamily),
),
);
}

View File

@ -55,11 +55,10 @@ Future<void> _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();