Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:credical/utile_size.dart';
- import 'package:flutter/material.dart';
- import 'package:flutter/services.dart';
- import 'package:flutter_svg/flutter_svg.dart';
- class SomethingWentWrong extends StatefulWidget {
- //
- static String routeName = "/somethingWentWrong";
- //
- const SomethingWentWrong({super.key});
- @override
- State<SomethingWentWrong> createState() => _SomethingWentWrongState();
- }
- class _SomethingWentWrongState extends State<SomethingWentWrong> {
- @override
- Widget build(BuildContext context) {
- SystemChrome.setSystemUIOverlayStyle(
- SystemUiOverlayStyle(
- statusBarColor: Colors.transparent,
- ),
- );
- SizeConfig().init(context);
- Size size = MediaQuery.of(context).size;
- return Scaffold(
- body: Column(
- children: [
- Container(
- padding: EdgeInsets.symmetric(
- horizontal: getProportionateScreenWidth(50),
- ),
- height: size.height * 0.45,
- width: size.width,
- child: SvgPicture.asset(
- "assets/404 Error-bro.svg",
- ),
- ),
- Text(
- "Something went wrong",
- style: TextStyle(
- color: Color(0xFF0f7dff),
- fontSize: getProportionateScreenWidth(22),
- fontWeight: FontWeight.bold,
- ),
- ),
- SizedBox(
- height: getProportionateScreenHeight(10),
- ),
- Padding(
- padding: EdgeInsets.symmetric(
- horizontal: getProportionateScreenWidth(25),
- ),
- child: Text(
- "Error message: Cannot read property 'baserate' of\nUndefined",
- style: TextStyle(
- fontSize: getProportionateScreenWidth(13),
- ),
- textAlign: TextAlign.center,
- ),
- ),
- Expanded(
- child: Padding(
- padding: EdgeInsets.all(
- getProportionateScreenWidth(23),
- ),
- child: Column(
- mainAxisAlignment: MainAxisAlignment.end,
- children: [
- Text(
- "Return home or Screenshot this page and send it with\ncredical support for assistance",
- style: TextStyle(
- fontSize: getProportionateScreenWidth(12),
- ),
- textAlign: TextAlign.center,
- ),
- SizedBox(
- height: getProportionateScreenHeight(10),
- ),
- Container(
- margin: EdgeInsets.symmetric(
- horizontal: getProportionateScreenWidth(30),
- ),
- width: size.width,
- height: getProportionateScreenHeight(50),
- decoration: BoxDecoration(
- borderRadius: BorderRadius.circular(
- getProportionateScreenWidth(10),
- ),
- color: Color(0xFF0f7dff),
- ),
- child: TextButton(
- style: ButtonStyle(
- shape: MaterialStateProperty.all(
- RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(
- getProportionateScreenWidth(10),
- ),
- ),
- ),
- ),
- child: Text(
- "Return Home",
- style: TextStyle(
- color: Colors.white,
- fontSize: getProportionateScreenWidth(16),
- ),
- ),
- onPressed: () {},
- ),
- ),
- SizedBox(
- height: getProportionateScreenHeight(10),
- ),
- //Contact support
- Container(
- margin: EdgeInsets.symmetric(
- horizontal: getProportionateScreenWidth(30),
- ),
- width: size.width,
- height: getProportionateScreenHeight(50),
- decoration: BoxDecoration(
- borderRadius: BorderRadius.circular(
- getProportionateScreenWidth(10),
- ),
- color: Colors.transparent,
- ),
- child: TextButton(
- style: ButtonStyle(
- shape: MaterialStateProperty.all(
- RoundedRectangleBorder(
- side: BorderSide(
- color: Color(0xFF0f7dff),
- width: getProportionateScreenWidth(1),
- ),
- borderRadius: BorderRadius.circular(
- getProportionateScreenWidth(10),
- ),
- ),
- ),
- ),
- child: Text(
- "Contact support",
- style: TextStyle(
- color: Color(0xFF0f7dff),
- fontSize: getProportionateScreenWidth(16),
- ),
- ),
- onPressed: () {},
- ),
- ),
- ],
- ),
- ),
- )
- ],
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement