forked from firka/student-legacy
readd test button
This commit is contained in:
parent
6242f7cc2e
commit
45f8cf2248
@ -1005,6 +1005,19 @@ class SettingsScreenState extends State<SettingsScreen>
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
ElevatedButton(
|
||||||
|
onPressed: () {
|
||||||
|
// Generate fake error details
|
||||||
|
FlutterErrorDetails fakeErrorDetails = FlutterErrorDetails(
|
||||||
|
exception: Exception('fasz'),
|
||||||
|
stack: StackTrace.current,
|
||||||
|
library: 'MyApp',
|
||||||
|
context: ErrorDescription('a kurva a-'),
|
||||||
|
);
|
||||||
|
showErrorScreen(context, fakeErrorDetails);
|
||||||
|
},
|
||||||
|
child: const Text('hiba_tesztelese'),
|
||||||
|
),
|
||||||
// developer options
|
// developer options
|
||||||
if (settings.developerMode)
|
if (settings.developerMode)
|
||||||
SplittedPanel(
|
SplittedPanel(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user