Home > front end >  How to add a dot break in between words in flutter
How to add a dot break in between words in flutter

Time:07-18

I'm working on a project and I need to know how to break words with a dot similar to how youtube adds dots in between elements, such as.Example

CodePudding user response:

You can copy the dot and use it directly in a string like this

String finalString = "$string1 • $string2";

CodePudding user response:

String string1 = "ALI";
String string2 = "Shan";
String dotString = "$string1 • $string2";

output: "ALI . Shan"

CodePudding user response:

you can use an interpunct. check the table on the lower part of the wikipedia entry to see different types of interpuncts.

  ...
  Text('$views views \u2981 $date');
  ...
  • Related