import 'package:flutter/material.dart';

class BtnReset extends StatelessWidget {
  final VoidCallback onPressed;

  const BtnReset({
    super.key,
    required this.onPressed,
  });

  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      height: 50,
      decoration: BoxDecoration(
        color: Colors.grey,
        borderRadius: BorderRadius.circular(20),
      ),
      child: TextButton(
        onPressed: onPressed,
        child: const Text(
          "重置",
          style: TextStyle(color: Colors.white),
        ),
      ),
    );
  }
}