mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +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
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Column(
|
return Column(
|
||||||
@ -84,7 +89,7 @@ class CustomExpansionTileState extends State<CustomExpansionTile> {
|
|||||||
// Title Text
|
// Title Text
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
widget.title,
|
_capitalizeFirstLetter(widget.title),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: _isExpanded
|
color: _isExpanded
|
||||||
? ColorsManager.blackColor
|
? ColorsManager.blackColor
|
||||||
|
Reference in New Issue
Block a user