2024-05-08 16:06:58 +03:00

41 lines
1.1 KiB
Dart

import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
// ignore: must_be_immutable
class ButtonWidget extends StatelessWidget {
ButtonWidget({super.key, required text, required onPressed});
late VoidCallback onPressed;
late String text;
@override
Widget build(BuildContext context) {
final size = MediaQuery.of(context).size;
return Padding(
padding: const EdgeInsets.only(top: 12.0),
child: InkWell(
onTap: onPressed,
child: Container(
alignment: Alignment.center,
height: size.height / 12,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(15.0),
border: Border.all(
width: 1.0,
color: const Color(0xFF21899C),
),
),
child: Text(
text,
textAlign: TextAlign.center,
style: GoogleFonts.inter(
fontSize: 16.0,
color: const Color(0xFF21899C),
fontWeight: FontWeight.w500,
height: 1.5,
),
),
),
),
);
}
}