opt.: migrate to new fl_lib (#649)

Fixes #648
This commit is contained in:
lollipopkit🏳️‍⚧️
2024-12-02 21:06:44 +08:00
committed by GitHub
parent b882baeafa
commit ddd32e82d4
50 changed files with 10858 additions and 225 deletions

View File

@@ -137,22 +137,22 @@ final class _SystemdPageState extends State<SystemdPage> {
children: [
Icon(func.icon, size: 19),
const SizedBox(width: 10),
Text(func.name.upperFirst),
Text(func.name.capitalize),
],
),
);
}
Widget _buildScopeTag(SystemdUnitScope scope) {
return _buildTag(scope.name.upperFirst, scope.color, true);
return _buildTag(scope.name.capitalize, scope.color, true);
}
Widget _buildStateTag(SystemdUnitState state) {
return _buildTag(state.name.upperFirst, state.color);
return _buildTag(state.name.capitalize, state.color);
}
Widget _buildTypeTag(SystemdUnitType type) {
return _buildTag(type.name.upperFirst);
return _buildTag(type.name.capitalize);
}
Widget _buildTag(String tag, [Color? color, bool noPad = false]) {