mirrored_repositories/smart_cyrptocurrency_clock/crypto_currency_app/lib/core/exception
import 'package:flutter/material.dart';

import '../../init/navigation/navigation_service.dart';

class NotFoundNavigationWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Stack(
        fit: StackFit.expand,
        children: [
          Image.asset(
            'assets/images/11_Broken Link.png',
            fit: BoxFit.cover,
          ),
          Positioned(
            bottom: MediaQuery.of(context).size.height * 0.15,
            left: MediaQuery.of(context).size.width * 0.3,
            right: MediaQuery.of(context).size.width * 0.3,
            child: Container(
              decoration: BoxDecoration(
                boxShadow: [
                  BoxShadow(
                    offset: Offset(0, 5),
                    blurRadius: 25,
                    color: Colors.black.withOpacity(0.17),
                  ),
                ],
              ),
              child: TextButton(
                style: TextButton.styleFrom(
                  backgroundColor: Colors.white,
                ),
                onPressed: () {
                  NavigationService.instance.navigateToBack();
                },
                child: Text(
                  'Back'.toUpperCase(),
                ),
              ),
            ),
          )
        ],
      ),
    );
  }
}
