验证是否只包含英文字母
static bool isAlphaOnly(String? text) { if (text?.isEmpty ?? true) return false; final regex = RegExp(r'^[A-Za-z]+$'); return regex.hasMatch(text!); }