remove unecessessary prefix text
This commit is contained in:
@@ -10,7 +10,6 @@ class TextIconListTile extends StatelessWidget {
|
|||||||
super.key,
|
super.key,
|
||||||
required this.text,
|
required this.text,
|
||||||
this.suffixText = '',
|
this.suffixText = '',
|
||||||
this.prefixText = '',
|
|
||||||
this.icon,
|
this.icon,
|
||||||
this.onPressed,
|
this.onPressed,
|
||||||
});
|
});
|
||||||
@@ -21,9 +20,6 @@ class TextIconListTile extends StatelessWidget {
|
|||||||
/// An optional suffix text to display after the main text.
|
/// An optional suffix text to display after the main text.
|
||||||
final String suffixText;
|
final String suffixText;
|
||||||
|
|
||||||
/// An optional prefix text to display before the main text.
|
|
||||||
final String prefixText;
|
|
||||||
|
|
||||||
/// The icon to display in the tile.
|
/// The icon to display in the tile.
|
||||||
final IconData? icon;
|
final IconData? icon;
|
||||||
|
|
||||||
@@ -48,14 +44,6 @@ class TextIconListTile extends StatelessWidget {
|
|||||||
text: TextSpan(
|
text: TextSpan(
|
||||||
style: DefaultTextStyle.of(context).style,
|
style: DefaultTextStyle.of(context).style,
|
||||||
children: [
|
children: [
|
||||||
TextSpan(
|
|
||||||
text: prefixText,
|
|
||||||
style: const TextStyle(
|
|
||||||
fontSize: 16,
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
color: CustomTheme.primaryColor,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: text,
|
text: text,
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
|
|||||||
Reference in New Issue
Block a user