40 lines
1.1 KiB
Dart
40 lines
1.1 KiB
Dart
import "package:flutter/material.dart";
|
|
import "package:flutter_screenutil/flutter_screenutil.dart";
|
|
import "package:google_fonts/google_fonts.dart";
|
|
|
|
Widget actionButton({
|
|
required String label,
|
|
required VoidCallback onPressed,
|
|
}) {
|
|
return GestureDetector(
|
|
onTap: onPressed,
|
|
child: Container(
|
|
width: double.infinity,
|
|
padding: EdgeInsets.symmetric(vertical: 14.h, horizontal: 14.w),
|
|
decoration: BoxDecoration(
|
|
borderRadius: BorderRadius.circular(10.r),
|
|
color: const Color(0xffFFF5F5),
|
|
border: Border.all(color: const Color(0xffF5C2C2)),
|
|
),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: [
|
|
Text(
|
|
label,
|
|
style: GoogleFonts.poppins(
|
|
color: Colors.black87,
|
|
fontWeight: FontWeight.w500,
|
|
fontSize: 13.sp,
|
|
),
|
|
),
|
|
SizedBox(width: 4.w),
|
|
const Icon(
|
|
Icons.arrow_forward_ios_rounded,
|
|
size: 14,
|
|
color: Colors.black54,
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
} |