refix
This commit is contained in:
parent
f190c21751
commit
171a1f677d
|
@ -58,8 +58,7 @@ class _AboutSystemPageState extends State<AboutSystemPage> {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
PreferredSizeWidget _buildAppBar(
|
PreferredSizeWidget _buildAppBar(BuildContext context, FlutterFlowTheme theme) {
|
||||||
BuildContext context, FlutterFlowTheme theme) {
|
|
||||||
return AppBar(
|
return AppBar(
|
||||||
backgroundColor: theme.primaryBackground,
|
backgroundColor: theme.primaryBackground,
|
||||||
automaticallyImplyLeading: false,
|
automaticallyImplyLeading: false,
|
||||||
|
@ -97,8 +96,7 @@ class _AboutSystemPageState extends State<AboutSystemPage> {
|
||||||
fontSize: 16.0,
|
fontSize: 16.0,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
useGoogleFonts: GoogleFonts.asMap()
|
useGoogleFonts: GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).headlineMediumFamily),
|
||||||
.containsKey(FlutterFlowTheme.of(context).headlineMediumFamily),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -128,20 +126,25 @@ class _AboutSystemPageState extends State<AboutSystemPage> {
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildLogo() {
|
Widget _buildLogo() {
|
||||||
return GestureDetector(
|
return SizedBox(
|
||||||
onTap: () {
|
height: 100,
|
||||||
final exception = Exception('Crashando');
|
width: 100,
|
||||||
final stackTrace = Trace.current();
|
child: Image.asset('assets/images/fre.png'),
|
||||||
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 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() {
|
Widget _buildLaunch() {
|
||||||
|
@ -164,8 +167,7 @@ class _AboutSystemPageState extends State<AboutSystemPage> {
|
||||||
color: theme.primaryText,
|
color: theme.primaryText,
|
||||||
fontSize: 16.0,
|
fontSize: 16.0,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
useGoogleFonts:
|
useGoogleFonts: GoogleFonts.asMap().containsKey(theme.headlineMediumFamily),
|
||||||
GoogleFonts.asMap().containsKey(theme.headlineMediumFamily),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,11 +55,10 @@ Future<void> _initializeSystemSettings() async {
|
||||||
final crashlyticsInstance = FirebaseCrashlytics.instance;
|
final crashlyticsInstance = FirebaseCrashlytics.instance;
|
||||||
|
|
||||||
await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
|
await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
|
||||||
if (false) {
|
if (kDebugMode) {
|
||||||
//kDebugMode
|
//kDebugMode
|
||||||
print('Debug mode');
|
print('Debug mode');
|
||||||
bool unsentReports =
|
bool unsentReports = await FirebaseCrashlytics.instance.checkForUnsentReports();
|
||||||
await FirebaseCrashlytics.instance.checkForUnsentReports();
|
|
||||||
if (unsentReports) {
|
if (unsentReports) {
|
||||||
// Existem relatórios não enviados
|
// Existem relatórios não enviados
|
||||||
await crashlyticsInstance.sendUnsentReports();
|
await crashlyticsInstance.sendUnsentReports();
|
||||||
|
|
Loading…
Reference in New Issue