import 'package:drifter/theme/app_colors.dart'; import 'package:flutter/material.dart'; class DisabledElevatedButton extends StatelessWidget { const DisabledElevatedButton({ super.key, }); @override Widget build(BuildContext context) { return ElevatedButton( onPressed: null, child: Text( 'Continue', style: TextStyle(fontSize: 16), ), style: ButtonStyle( shape: MaterialStatePropertyAll( RoundedRectangleBorder(borderRadius: BorderRadius.circular(100))), backgroundColor: const MaterialStatePropertyAll(AppColors.buttonPrimaryDisabledBg), foregroundColor: const MaterialStatePropertyAll( AppColors.buttonPrimaryDisabledText)), ); } } class ActiveElevatedButton extends StatelessWidget { const ActiveElevatedButton({ super.key, }); @override Widget build(BuildContext context) { return ElevatedButton( onPressed: () { Navigator.pushNamed(context, '/login'); }, child: Text( 'Continue', style: TextStyle(fontSize: 16), ), style: ButtonStyle( shape: MaterialStatePropertyAll( RoundedRectangleBorder(borderRadius: BorderRadius.circular(100))), backgroundColor: const MaterialStatePropertyAll(AppColors.buttonPrimaryDefaultBg), foregroundColor: const MaterialStatePropertyAll( AppColors.buttonPrimaryDefaultText)), ); } }