add const thing, exception screen done, need theme colors maybe?
This commit is contained in:
parent
f02bacc877
commit
fd8ebb98a5
@ -14,7 +14,7 @@ class ErrorReportScreen extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: Color(0xFFE3EBFB),
|
backgroundColor: const Color(0xFFE3EBFB),
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(12.0),
|
padding: const EdgeInsets.all(12.0),
|
||||||
@ -28,7 +28,7 @@ class ErrorReportScreen extends StatelessWidget {
|
|||||||
child: Text(
|
child: Text(
|
||||||
"ekretaYou".i18n,
|
"ekretaYou".i18n,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Color(0xFF011234).withOpacity(0.7),
|
color: const Color(0xFF011234).withOpacity(0.7),
|
||||||
fontSize: 24.0,
|
fontSize: 24.0,
|
||||||
fontWeight: FontWeight.w700,
|
fontWeight: FontWeight.w700,
|
||||||
),
|
),
|
||||||
@ -38,7 +38,7 @@ class ErrorReportScreen extends StatelessWidget {
|
|||||||
future: dirtyString(),
|
future: dirtyString(),
|
||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
if (snapshot.connectionState == ConnectionState.waiting) {
|
if (snapshot.connectionState == ConnectionState.waiting) {
|
||||||
return CircularProgressIndicator();
|
return const CircularProgressIndicator();
|
||||||
}
|
}
|
||||||
if (snapshot.hasError) {
|
if (snapshot.hasError) {
|
||||||
return Text("Error: ${snapshot.error}");
|
return Text("Error: ${snapshot.error}");
|
||||||
@ -145,7 +145,7 @@ class ErrorReportScreen extends StatelessWidget {
|
|||||||
const EdgeInsets.symmetric(vertical: 14.0),
|
const EdgeInsets.symmetric(vertical: 14.0),
|
||||||
),
|
),
|
||||||
backgroundColor: MaterialStateProperty.all(
|
backgroundColor: MaterialStateProperty.all(
|
||||||
Color(0xFFF3F7FE),
|
const Color(0xFFF3F7FE),
|
||||||
),
|
),
|
||||||
shape: MaterialStateProperty.all(
|
shape: MaterialStateProperty.all(
|
||||||
RoundedRectangleBorder(
|
RoundedRectangleBorder(
|
||||||
@ -153,7 +153,7 @@ class ErrorReportScreen extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
side: MaterialStateProperty.all(
|
side: MaterialStateProperty.all(
|
||||||
BorderSide(width: 1.0, color: Color(0xFFC7D3EB)),
|
const BorderSide(width: 1.0, color: Color(0xFFC7D3EB)),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
@ -269,7 +269,7 @@ 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: Color.fromARGB(255, 218, 218, 218),
|
color: const Color.fromARGB(255, 218, 218, 218),
|
||||||
borderRadius: BorderRadius.circular(4.0)),
|
borderRadius: BorderRadius.circular(4.0)),
|
||||||
child: Text(
|
child: Text(
|
||||||
content,
|
content,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user