import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; Widget backWidget(BuildContext context, String title, Color? textColor){ return GestureDetector( onTap: () { Navigator.pop(context); }, child: Row( children: [ Icon(Icons.arrow_back, size: 24.sp, color: textColor ?? Colors.black), SizedBox(width: 8.w), Text( title, style: TextStyle( fontSize: 12.sp, fontWeight: FontWeight.w500, color: textColor ?? Colors.black ), ), ], ), ); }