import 'package:diplomaticquarterapp/theme/colors.dart'; import 'package:flutter/material.dart'; class StartButton extends StatelessWidget { final void Function() onPressed; final bool disabled; const StartButton({ Key? key, required this.onPressed, required this.disabled, }) : super(key: key); @override Widget build(BuildContext context) { return Align( alignment: Alignment.bottomRight, child: Padding( padding: const EdgeInsets.only(right: 16.0, bottom: 32), child: ElevatedButton( onPressed: (disabled) ? () {} : onPressed, style: ElevatedButton.styleFrom( fixedSize: const Size(100, 70), shape: const CircleBorder(), backgroundColor: (disabled) ? Colors.grey : CustomColors.accentColor, elevation: 8, ), child: const Text( "START", style: TextStyle( fontSize: 14, ), ), ), ), ); } }