forked from firka/student-legacy
new exception screen almost done
This commit is contained in:
parent
ed80d3fc62
commit
efa19c672a
@ -22,22 +22,23 @@ class ErrorReportScreen extends StatelessWidget {
|
|||||||
children: [
|
children: [
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
Image.asset('assets/icons/ic_rounded.png', height: 40),
|
Image.asset('assets/icons/ic_rounded.png', height: 40),
|
||||||
const Spacer(),
|
const SizedBox(height: 16),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.only(bottom: 4.0),
|
padding: const EdgeInsets.only(bottom: 4.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
"ekretaYou".i18n,
|
"ekretaYou".i18n,
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.white,
|
color: Color(0xFF011234).withOpacity(0.7),
|
||||||
fontSize: 32.0,
|
fontSize: 24.0,
|
||||||
fontWeight: FontWeight.w900,
|
fontWeight: FontWeight.w700,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
"description".i18n,
|
"description".i18n,
|
||||||
style: TextStyle(
|
textAlign: TextAlign.center,
|
||||||
color: Colors.white.withOpacity(.95),
|
style: const TextStyle(
|
||||||
|
color: Color(0xFF011234),
|
||||||
fontSize: 24.0,
|
fontSize: 24.0,
|
||||||
fontWeight: FontWeight.w700,
|
fontWeight: FontWeight.w700,
|
||||||
),
|
),
|
||||||
@ -47,7 +48,7 @@ class ErrorReportScreen extends StatelessWidget {
|
|||||||
alignment: Alignment.topRight,
|
alignment: Alignment.topRight,
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
height: 110.0,
|
height: 244.0,
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
padding: const EdgeInsets.all(12.0),
|
padding: const EdgeInsets.all(12.0),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
@ -83,13 +84,14 @@ class ErrorReportScreen extends StatelessWidget {
|
|||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const Spacer(),
|
const SizedBox(height: 16),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
|
height: 48,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
style: ButtonStyle(
|
style: ButtonStyle(
|
||||||
padding: MaterialStateProperty.all(
|
padding: MaterialStateProperty.all(
|
||||||
const EdgeInsets.symmetric(vertical: 14.0)),
|
const EdgeInsets.symmetric(vertical: 10.0)),
|
||||||
backgroundColor:
|
backgroundColor:
|
||||||
MaterialStateProperty.all(const Color(0xFF0E275A)),
|
MaterialStateProperty.all(const Color(0xFF0E275A)),
|
||||||
shape: MaterialStateProperty.all(
|
shape: MaterialStateProperty.all(
|
||||||
@ -111,17 +113,22 @@ class ErrorReportScreen extends StatelessWidget {
|
|||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
|
height: 48,
|
||||||
child: OutlinedButton(
|
child: OutlinedButton(
|
||||||
style: ButtonStyle(
|
style: ButtonStyle(
|
||||||
padding: MaterialStateProperty.all(
|
padding: MaterialStateProperty.all(
|
||||||
const EdgeInsets.symmetric(vertical: 14.0)),
|
const EdgeInsets.symmetric(vertical: 14.0),
|
||||||
backgroundColor:
|
),
|
||||||
MaterialStateProperty.all(Color(0xFFF3F7FE)),
|
backgroundColor: MaterialStateProperty.all(
|
||||||
foregroundColor:
|
Color(0xFFF3F7FE),
|
||||||
MaterialStateProperty.all(const Color(0xFFC7D3EB)),
|
),
|
||||||
shape: MaterialStateProperty.all(
|
shape: MaterialStateProperty.all(
|
||||||
RoundedRectangleBorder(
|
RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(12.0)),
|
borderRadius: BorderRadius.circular(12.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
side: MaterialStateProperty.all(
|
||||||
|
BorderSide(width: 5.0, color: Colors.blue),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
@ -151,7 +158,7 @@ class ErrorReportScreen extends StatelessWidget {
|
|||||||
version: const String.fromEnvironment("APPVER", defaultValue: "?"),
|
version: const String.fromEnvironment("APPVER", defaultValue: "?"),
|
||||||
stack: details.stack.toString(),
|
stack: details.stack.toString(),
|
||||||
);
|
);
|
||||||
FilcAPI.sendReport(report);
|
reFilcAPI.sendReport(report);
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -237,12 +244,13 @@ class ErrorDetail extends StatelessWidget {
|
|||||||
const EdgeInsets.symmetric(horizontal: 6.5, vertical: 4.0),
|
const EdgeInsets.symmetric(horizontal: 6.5, vertical: 4.0),
|
||||||
margin: const EdgeInsets.only(top: 4.0),
|
margin: const EdgeInsets.only(top: 4.0),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Colors.black26,
|
color: Color.fromARGB(255, 218, 218, 218),
|
||||||
borderRadius: BorderRadius.circular(4.0)),
|
borderRadius: BorderRadius.circular(4.0)),
|
||||||
child: Text(
|
child: Text(
|
||||||
content,
|
content,
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontFamily: 'SpaceMono', color: Colors.white),
|
fontFamily: 'GeistMono',
|
||||||
|
color: Color.fromARGB(255, 0, 0, 0)),
|
||||||
))
|
))
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -17,7 +17,7 @@ extension SettingsLocalization on String {
|
|||||||
},
|
},
|
||||||
"hu_hu": {
|
"hu_hu": {
|
||||||
"ekretaYou": "eKréta, te",
|
"ekretaYou": "eKréta, te",
|
||||||
"description": "Hiba történt!",
|
"description": "Fasz-emulátor hivatásos balfasz!",
|
||||||
"submit": "Hiba jelentése",
|
"submit": "Hiba jelentése",
|
||||||
"goback": "Vissza",
|
"goback": "Vissza",
|
||||||
"details": "Részletek",
|
"details": "Részletek",
|
||||||
|
@ -57,7 +57,7 @@ class LoginScreenState extends State<LoginScreen> {
|
|||||||
systemNavigationBarIconBrightness: Brightness.dark,
|
systemNavigationBarIconBrightness: Brightness.dark,
|
||||||
));
|
));
|
||||||
|
|
||||||
FilcAPI.getSchools().then((schools) {
|
reFilcAPI.getSchools().then((schools) {
|
||||||
if (schools != null) {
|
if (schools != null) {
|
||||||
schoolController.update(() {
|
schoolController.update(() {
|
||||||
schoolController.schools = schools;
|
schoolController.schools = schools;
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 146ff9251c421f1982e90e07d36027c4d5d3342a
|
Subproject commit 2a1b68c545fb01720a3b1f25230f800ad4b0bf20
|
Loading…
x
Reference in New Issue
Block a user