mirror of
https://github.com/flutter/packages.git
synced 2025-06-30 23:03:11 +08:00
♻️ Use enum entry's name (#2976)
This commit is contained in:
@ -225,8 +225,7 @@ class PersonScreen extends StatelessWidget {
|
||||
in person.details.entries)
|
||||
ListTile(
|
||||
title: Text(
|
||||
// TODO(kevmoo): replace `split` with `name` when min SDK is 2.15
|
||||
'${entry.key.toString().split('.').last} - ${entry.value}',
|
||||
'${entry.key.name} - ${entry.value}',
|
||||
),
|
||||
trailing: OutlinedButton(
|
||||
onPressed: () => PersonDetailsRoute(
|
||||
|
Reference in New Issue
Block a user