mirrored_repositories/xlo/lib/screens/home
import 'package:flutter/material.dart';

class BarButton extends StatelessWidget {
  final String label;
  final Decoration decoration;
  final VoidCallback onTap;
  const BarButton({this.label, this.decoration, this.onTap});

  @override
  Widget build(BuildContext context) {
    return Expanded(
      child: InkWell(
        onTap: onTap,
        child: Container(
          height: 40,
          alignment: Alignment.center,
          decoration: decoration,
          child: Text(
            label,
            style: TextStyle(
              color: Colors.white,
              fontSize: 18,
              fontWeight: FontWeight.w600,
            ),
          ),
        ),
      ),
    );
  }
}
