use Text.rich for ghost text (trying to fix #305)
This commit is contained in:
@@ -168,10 +168,9 @@ class AutoSuggestTextField extends HookWidget {
|
|||||||
return const SizedBox.shrink();
|
return const SizedBox.shrink();
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: maybe change to Text.rich
|
return Text.rich(
|
||||||
return RichText(
|
|
||||||
maxLines: maxLines,
|
maxLines: maxLines,
|
||||||
text: TextSpan(
|
TextSpan(
|
||||||
text: text,
|
text: text,
|
||||||
style: effectiveStyle.copyWith(
|
style: effectiveStyle.copyWith(
|
||||||
color: Colors.transparent,
|
color: Colors.transparent,
|
||||||
|
|||||||
Reference in New Issue
Block a user