forked from firka/student-legacy
started theme idk
This commit is contained in:
parent
73d1215b23
commit
eb50493cc5
@ -5,7 +5,7 @@ import 'package:refilc/api/client.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
||||||
import 'error_report_screen.i18n.dart';
|
import 'error_report_screen.i18n.dart';
|
||||||
|
import 'package:refilc/theme/colors/colors.dart';
|
||||||
|
|
||||||
//TODO: make this screen follow the users colors? kima what do you think
|
//TODO: make this screen follow the users colors? kima what do you think
|
||||||
|
|
||||||
@ -17,7 +17,7 @@ class ErrorReportScreen extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: const Color(0xFFE3EBFB),
|
backgroundColor: Theme.of(context).colorScheme.background,
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(12.0),
|
padding: const EdgeInsets.all(12.0),
|
||||||
@ -31,7 +31,7 @@ class ErrorReportScreen extends StatelessWidget {
|
|||||||
child: Text(
|
child: Text(
|
||||||
"ekretaYou".i18n,
|
"ekretaYou".i18n,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: const Color(0xFF011234).withOpacity(0.7),
|
color: AppColors.of(context).text.withOpacity(0.7),
|
||||||
fontSize: 24.0,
|
fontSize: 24.0,
|
||||||
fontWeight: FontWeight.w700,
|
fontWeight: FontWeight.w700,
|
||||||
),
|
),
|
||||||
@ -49,8 +49,8 @@ class ErrorReportScreen extends StatelessWidget {
|
|||||||
return Text(
|
return Text(
|
||||||
snapshot.data ?? "",
|
snapshot.data ?? "",
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
color: Color(0xFF011234),
|
color: AppColors.of(context).text,
|
||||||
fontSize: 24.0,
|
fontSize: 24.0,
|
||||||
fontWeight: FontWeight.w700,
|
fontWeight: FontWeight.w700,
|
||||||
fontStyle: FontStyle.italic,
|
fontStyle: FontStyle.italic,
|
||||||
@ -62,8 +62,8 @@ class ErrorReportScreen extends StatelessWidget {
|
|||||||
Text(
|
Text(
|
||||||
"smth_went_wrong".i18n,
|
"smth_went_wrong".i18n,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
color: Color(0xFF011234),
|
color: AppColors.of(context).text,
|
||||||
fontSize: 16.0,
|
fontSize: 16.0,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
fontFamily: 'Geist',
|
fontFamily: 'Geist',
|
||||||
@ -80,7 +80,10 @@ class ErrorReportScreen extends StatelessWidget {
|
|||||||
padding: const EdgeInsets.all(12.0),
|
padding: const EdgeInsets.all(12.0),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.circular(12.0),
|
borderRadius: BorderRadius.circular(12.0),
|
||||||
color: const Color(0xFFF7F9FC),
|
color: Colors.white.withOpacity(
|
||||||
|
Theme.of(context).brightness == Brightness.light
|
||||||
|
? .35
|
||||||
|
: .2),
|
||||||
boxShadow: [
|
boxShadow: [
|
||||||
BoxShadow(
|
BoxShadow(
|
||||||
color: Colors.grey.withOpacity(0.2),
|
color: Colors.grey.withOpacity(0.2),
|
||||||
@ -103,7 +106,8 @@ class ErrorReportScreen extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: const Icon(FeatherIcons.info, color: Color(0xFF011234)),
|
icon:
|
||||||
|
const Icon(FeatherIcons.info, color: Color(0xFF011234)),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
@ -120,8 +124,7 @@ class ErrorReportScreen extends StatelessWidget {
|
|||||||
style: ButtonStyle(
|
style: ButtonStyle(
|
||||||
padding: MaterialStateProperty.all(
|
padding: MaterialStateProperty.all(
|
||||||
const EdgeInsets.symmetric(vertical: 10.0)),
|
const EdgeInsets.symmetric(vertical: 10.0)),
|
||||||
backgroundColor:
|
backgroundColor: MaterialStateProperty.all(Colors.black),
|
||||||
MaterialStateProperty.all(const Color(0xFF0E275A)),
|
|
||||||
shape: MaterialStateProperty.all(
|
shape: MaterialStateProperty.all(
|
||||||
RoundedRectangleBorder(
|
RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(12.0)),
|
borderRadius: BorderRadius.circular(12.0)),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user