import 'package:flutter/material.dart'; class TncRequiredScreen extends StatelessWidget { // Renamed class const TncRequiredScreen({Key? key}) : super(key: key); static const routeName = '/tnc-required'; @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text('Terms and Conditions'), ), body: Stack( children: [ Center( child: Padding( padding: const EdgeInsets.all(16.0), child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ const Text( 'You must accept the Terms and Conditions to use the application.', textAlign: TextAlign.center, style: TextStyle(fontSize: 18), ), const SizedBox(height: 20), ElevatedButton( onPressed: () { // This will take the user back to the previous screen Navigator.of(context).pop(); }, child: const Text('Go Back'), ), ], ), ), ), IgnorePointer( child: Center( child: Opacity( opacity: 0.07, // Reduced opacity child: ClipOval( child: Image.asset( 'assets/images/logo.png', width: 200, // Adjust size as needed height: 200, // Adjust size as needed ), ), ), ), ), ], ), ); } }