验证是否为纯字母
bool isAlphabetic(String? s) { if (s == null || s.isEmpty) return false; const pattern = r'^[a-zA-Z]+$'; return hasMatch(s, pattern); }