144 questions
0
votes
1
answer
45
views
Combine AutoSizeText with custom Text Widget
I was using the AutoSizeText package which works fine. But now I want to embed emojis from a custom font into my text. Hence I use the wonderful solution of codingedward. My problem is, that now I ...
-1
votes
2
answers
57
views
textTheme will not apply for all Text widget
i wanna use custom textTheme inside the ThemeData but this custom text will not be apply to all Text widget for instance : Text inside the ListTile will get style from inherit Widget which is not what ...
0
votes
0
answers
39
views
How to get the visible/rendered value of a Text-widget while Testing?
I have kind of an responsive Text-widget which uses as much space as possible, but truncates overflowing Texts.
To get stable and reliable code-base I want to have an test. which verifies that ...
-1
votes
1
answer
426
views
How can I wrap text in Flutter, breaking ONLY at spaces?
Currently the Flutter Text widget will break words in awkward places, such as breaking "Almacenamiento Digital" like:
The behaviour I want is for words that are too long for their container ...
1
vote
1
answer
58
views
How to simulate and verify text selection in Flutter tests?
I have a simple test app:
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
...
0
votes
1
answer
65
views
Unable to align text left
Widget cardText(String text) {
return FittedBox(
fit: BoxFit.contain,
child: Text(
textAlign: TextAlign.left,
text,
style: const TextStyle(
...
0
votes
2
answers
513
views
Flutter: how to make TextOverflow.ellipse in the middle of Text
I need to create a UI like the image above, but it is not related to the length of the string. It will be limited to the width of the parent Widget that contains it.
I did some reseach and see the ...
1
vote
2
answers
79
views
How to set text in the center of the container in Flutter when trying to reduce container size?
when text container size decrease with font size that time the text not set in center. it is gone below size of container how to solve it.
Container(
height: height,
...
0
votes
0
answers
57
views
type '(DateTime) => String' is not a subtype of type 'DateTime' in type cast
i am creating a laundry app but i am seeing this error saying cant use datatime in string. i have provided every code which have datetime in text involved and provided run error. here is the ...
0
votes
1
answer
608
views
minLines and maxLines must be null when expands is true in flutter
in this textfiled i use expands and maxline both but show error how to set maxline 1. this textfiled i used in resizable container when the container size go small the text font go to new line but i ...
0
votes
1
answer
114
views
When resize the container text not stay in center in flutter
here when the drag the container the text is not center if some height and width get than container text set in center.
double width = 110.0;
double height = 40.0;
double fontSize = 14;
bool ...
1
vote
1
answer
598
views
How do I soft wrap my Text widget in Flutter
I have tried all that I know to get the text to softwrap. I have looked at other people's codes and solutions. Nothing seems to work. Is there something I am missing?
I have tried wrapping it in an ...
-1
votes
2
answers
63
views
Flutter Text not going on a new line in the correct way
My Flutter Text widget is not going on a new line in the way that it should following the spaces between words. What I am expecting is something like:
Non tutti possono diventare dei
grandi artisti ...
0
votes
2
answers
154
views
Need help replicating Scrolling Text functionality from Audible in Flutter - am I doing it the right way?
I'm pretty new to flutter and I'm working on replicating the text scrolling feature for long track titles from the Audible app, (see attached). Here's the behavior I'm trying to achieve:
• Display the ...
-1
votes
1
answer
749
views
Writing Text animation in flutter
i am new to flutter and i want to know whether writing text animation is possible in flutter or not. i dont want the hand icon or something, just the text should appear like someone is writing it.
i ...
0
votes
2
answers
151
views
DropdownButton text style doesn't change
I'm trying to use Montserrat with a custom color on my DropdownButton but for some reason, the TextStyle is not being applied.
Here is my code:
DropdownButton(
value: value,
dropdownColor: ...
0
votes
1
answer
161
views
How to animate a paragraph in Flutter using TypeWriterAnimation for the entire paragraph at once?
I'm currently working on a Flutter project and I'm facing an issue with animations. Specifically, I'm trying to animate a paragraph, but I'm using the TypeWriterAnimation package, which animates the ...
0
votes
0
answers
56
views
How to fill Wrap-Widget's available space?
I have a Wrap Widget which has a couple of Containers as children. These Containers have a Text Widget as child with different String lengths.
return SizedBox(
height: MediaQuery.of(context).size....
0
votes
1
answer
178
views
Need automatic adjustment for my text to fit within a container with a length of 100
Container(
height: 100,
color: Colors.black,
child: const Text(
'height, width vs varsa önce bunlar kendisini ön plana ...
0
votes
1
answer
538
views
Use function return value in string in dart
I want to use the return value of a function, which is a string, with a string inside a Text Widget.
This is my code, task is an object of a class. It contains the date attribute.
Text(
'Due to $...
0
votes
1
answer
164
views
AWS Amplify DataStore displaying as-it-is string data with '\n' (New line character) without creating a new line in Flutter 'Text' class
I've a small doubt on displaying data through AWS Amplify DataStore.
I've the below model in schema.graphql
type ItemFaq @model @auth(rules: [{allow: public}]) {
id: ID!
indexItemFaq: Int
...
0
votes
2
answers
239
views
Flutter TextField set textAlign for each line separately
In flutter, Is there any way to set textAlign for each line separately?
I want something like telegram app text input:
In telegram, if the line starts with a rtl language, text align is right ...
0
votes
1
answer
289
views
How can I configure a Flutter TextField to take all text input?
I have precisely one TextField on the screen of my Flutter app. I want my Flutter app to both work on the desktop and on mobile.
Whenever the app is active I want all text input to go into the ...
3
votes
2
answers
609
views
SelectableRegion setState selection lost
In the following example I have a SelectableRegion containing a list of text widgets and I call setState() every second. If I remove 'SelectionContainer.disabled' in 'TextWidget' then the selection ...
0
votes
1
answer
131
views
Flutter detect which color text is on top of
I want to find the color of the widget that is behind (z axis) a Text() widget. The Text() widget may be in front of a Stack(), Column(), Scaffold(), Container() or any other widget. I am not talking ...
0
votes
0
answers
156
views
How can I show the right animated text in flutter?
I need to show an animated sentence in the correct translation for the user. On first start, however, flutter is as if it were loading the animation first and then looking for the right translation ...
-1
votes
1
answer
48
views
Flutter UI Text Layout
I have a few widgets in a Row. Two text widgets and three custom widgets. For text to wrap into next line it needs to be inside an Expanded but if I use it always pushes search icon all the way to the ...
1
vote
1
answer
323
views
Flutter ParagraphBuilder.addText repetitive crashes
I released a new version of my app and I just keep getting users having repetitive crashes for this one error. The stack trace does not point to any lines in my code. Just Flutter libraries, I was ...
0
votes
1
answer
44
views
Why Text doesn't render in the body before navigation?
For some reason, Text Widget doesn't work in my new view
I have a named navigation from the MaterialApp:
routes: <String, WidgetBuilder>
'/home': (BuildContext context) => Home(),
'/recipes': ...
0
votes
2
answers
44
views
I want to pass a value from one page to another after clicking it if not it should show a message in flutter
I have 5 texts in a row, all text is wrapped inside Inkwell, I want the selected text to send to the next page in the flutter, if not selected it should show the select value in a snack bar
Padding(
...
0
votes
1
answer
2k
views
Flutter loading text animation
How to achieve this effect with Flutter? Preferably with something like animatedContainer, but not necessarily.
0
votes
1
answer
41
views
How can I create a multiple line text so that each line (row) is centered?
body: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.only(top: 20, left: 15, right: 15),
child: Padding(
padding: const EdgeInsets.only(top: ...
0
votes
2
answers
706
views
Flutter How to add specific text to each image on Home Page?
I tried to run the image by index from my image folder but I don't know how to implement specific to text to each image see here
But I am unsure now how I can add specific text to each images by ...
1
vote
1
answer
124
views
Null check operator used on a null value - inside row->column->text
i am learnig flutter and here i was trying to use TextOverFLow.elipsis in a Design flow following=> listvie.seprated=> item builder=> Row=> container,Column=>text,text and i got 'Null ...
0
votes
1
answer
1k
views
flutter display text with special characters [duplicate]
How can I render text with the special chars like ' in flutter
I have tried using Runnes and Ut8 but not getting the rquired result
1
vote
1
answer
66
views
Text in a container in a row overflows. Expanded doesn't work
There are a lot of similar questions, but none of them works in my case. I think it may be connected to my builder widget, but it is just a guess based on that I tried every combination of Expanded, ...
0
votes
2
answers
701
views
Flutter different screen layout in different phone
I was facing this problem when I try to open my app on different phone. The text seem moved away and different size. Hereby I included my code. What should I do t make it flexible? As you can see ...
0
votes
1
answer
46
views
Flutter same container different content animation
In a container widget I am showing a text widget for displaying content. I am using same container but the text content differs based on user selection. when user choose different option is it ...
0
votes
1
answer
381
views
Implementing flutter_parsed_text and readmore in flutter
How can I implement flutter_parsed_text with ReadMore in flutter?
0
votes
3
answers
592
views
Flutter Row widget with two two text widget is not following one another
I am trying to wrap text (multi line) followed by "Read More" in a Row widget.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's ...
1
vote
1
answer
58
views
How I can get a text from user with multi style in flutter?
I have a problem with text in flutter. First I want to display an image.
I want to build that bottom option to take text from users with multi styles that users choose. So I have two problems.
First, ...
1
vote
1
answer
278
views
how to put an onpressed in a part of a text - flutter
I tried like this, but i need put a text like "to do something click here"
TextButton(
onPressed: () {
setState(() {
isVisible = false;
});
},
child: const Text('click here'),
),
2
votes
4
answers
1k
views
Text widget overflow in row not clipping properly
I am building a widget in flutter and am attempting to display two text widgets in a row with spacing in between them so that each text widget is aligned at the end of the row. Sometimes these two ...
1
vote
1
answer
324
views
Flutter - Get text from all textfields in List of Widgets
I have a list of Container-Widgets which contain TextFields as children. Through a function, I can add/remove containers from this list.
I would like to get the text from all the TextFields once the ...
2
votes
1
answer
555
views
How to backrgroundColor full in TextSpan on flutter?
Widget richText() {
return Positioned(
top: h / 1.9,
right: w / 4.9,
child: Material(
color: Colors.transparent,
child: Container(
padding:...
2
votes
1
answer
1k
views
How to wrap text and image on flutter?
I want make this
Wrap(
textDirection: TextDirection.rtl,
children: [
Text(
_items[1]['text'],
softWrap: true,
textAlign: TextAlign.justify,
...
0
votes
3
answers
1k
views
How to make text color transparent on top of container
I need to make widget this widget. For this, I need to make text transparent on top of coloured container.
-1
votes
1
answer
40
views
How to Bold two letter in title
I am using getwidget and I want to bold two letter in title bar in this code
GFAccordion(
contentBackgroundColor: Color.fromARGB(137, 246, 246, 246),
...
0
votes
5
answers
383
views
How can i achieve this half bold text in flutter
Does anyone know how I can get this half-bolded effect using Flutter?
1
vote
2
answers
194
views
Does anyone know how to fix this? TextOverflow.ellipsis does not help to put ellipsis
I need that if the user had a long nickname, then an ellipsis would appear, but it does not work.
Here is the code:
AppBar(
elevation: 0,
toolbarHeight: 76,
...