first commit
This commit is contained in:
16
lib/Screens/hrm/widgets/label_style.dart
Normal file
16
lib/Screens/hrm/widgets/label_style.dart
Normal file
@@ -0,0 +1,16 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
Widget labelSpan({required String title, required BuildContext context}) {
|
||||
final _theme = Theme.of(context);
|
||||
return Text.rich(
|
||||
TextSpan(text: title, children: [
|
||||
TextSpan(
|
||||
text: '*',
|
||||
style: TextStyle(color: Colors.red),
|
||||
)
|
||||
]),
|
||||
style: _theme.textTheme.titleSmall?.copyWith(
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user