feat: add placement ruleset and related localization
This commit is contained in:
@@ -10,6 +10,7 @@ class TextIconListTile extends StatelessWidget {
|
||||
super.key,
|
||||
required this.text,
|
||||
this.suffixText = '',
|
||||
this.prefixText = '',
|
||||
this.iconEnabled = true,
|
||||
this.onPressed,
|
||||
});
|
||||
@@ -20,6 +21,9 @@ class TextIconListTile extends StatelessWidget {
|
||||
/// An optional suffix text to display after the main text.
|
||||
final String suffixText;
|
||||
|
||||
/// An optional prefix text to display before the main text.
|
||||
final String prefixText;
|
||||
|
||||
/// A boolean to determine if the icon should be displayed.
|
||||
final bool iconEnabled;
|
||||
|
||||
@@ -44,6 +48,14 @@ class TextIconListTile extends StatelessWidget {
|
||||
text: TextSpan(
|
||||
style: DefaultTextStyle.of(context).style,
|
||||
children: [
|
||||
TextSpan(
|
||||
text: prefixText,
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: CustomTheme.primaryColor,
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: text,
|
||||
style: const TextStyle(
|
||||
|
||||
Reference in New Issue
Block a user