diff --git a/lib/features/home/presentation/pages/about_system.dart b/lib/features/home/presentation/pages/about_system.dart index 78a409c2..31438508 100644 --- a/lib/features/home/presentation/pages/about_system.dart +++ b/lib/features/home/presentation/pages/about_system.dart @@ -1,5 +1,6 @@ import 'dart:developer'; +import 'package:firebase_crashlytics/firebase_crashlytics.dart'; import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:google_fonts/google_fonts.dart'; @@ -7,6 +8,8 @@ import 'package:hub/flutter_flow/flutter_flow_icon_button.dart'; import 'package:hub/flutter_flow/flutter_flow_theme.dart'; import 'package:hub/flutter_flow/flutter_flow_util.dart'; import 'package:hub/flutter_flow/internationalization.dart'; +import 'package:hub/shared/utils/log_util.dart'; +import 'package:stack_trace/stack_trace.dart'; import 'package:package_info_plus/package_info_plus.dart'; import 'package:url_launcher/url_launcher.dart'; @@ -125,10 +128,19 @@ class _AboutSystemPageState extends State { } Widget _buildLogo() { - 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'), + ), ); }