mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 22:57:21 +00:00
Capitalized first letter
This commit is contained in:
@ -40,6 +40,11 @@ class CustomExpansionTileState extends State<CustomExpansionTile> {
|
||||
}
|
||||
}
|
||||
|
||||
String _capitalizeFirstLetter(String text) {
|
||||
if (text.isEmpty) return text;
|
||||
return text[0].toUpperCase() + text.substring(1);
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Column(
|
||||
@ -84,7 +89,7 @@ class CustomExpansionTileState extends State<CustomExpansionTile> {
|
||||
// Title Text
|
||||
Expanded(
|
||||
child: Text(
|
||||
widget.title,
|
||||
_capitalizeFirstLetter(widget.title),
|
||||
style: TextStyle(
|
||||
color: _isExpanded
|
||||
? ColorsManager.blackColor
|
||||
|
Reference in New Issue
Block a user