wortwählbarer Text
EyrisCrafts/wordSelectableText open-source repository details.
- Sterne
- 16
- Forks
- 2
- Letzter Push (UTC)
- 01.08.2021
- Projektstatus
- Aktiv
Original-README
Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
WordSelectableText
This is a Text Widget that supports word highlighting and selection. It provides an onWordTapped function that gives you access to the word selected by the user.
HighLight Word
You can highlight the word in any color using the highlightColor argument.
Language support
The widget uses a regex of alphabet set to select words. For English, regex used is [a-zA-Z]
Example
@override
Widget build(BuildContext context) {
String textToShow =
"Dermatology is the branch of medicine dealing with the skin. It is a speciality with both medical and surgical aspects. A dermatologist is a specialist doctor who manages diseases related to skin, hair and nails and some cosmetic problems.";
return Scaffold(
appBar: AppBar(title: Text("widget testing"),),
body: Container(
padding: EdgeInsets.all(40),
width: double.infinity,
child: WordSelectableText(
selectable: true,
highlight: true,
text: textToShow,
onWordTapped: (word, index) {},
style: TextStyle(fontSize: 20)
)),
);
}

SprachenDart
Verwendete Abhängigkeiten
Abhängigkeiten 2 Einträge
- flutter
{"sdk":"flutter"} - flutter_testEntwicklung
{"sdk":"flutter"}
Wie wähle ich ein passendes Repository?
Nach Anwendungsfall filtern, Aktivität vergleichen und vor der Nutzung das Originalprojekt prüfen.
- Nach Name, Autor oder Beschreibung suchen und nach Thema eingrenzen.
- Sterne, Forks und letzte Pushes vergleichen. Sterne zeigen Interesse, garantieren aber keine Qualität.
- Vor der Nutzung README, Lizenz und Issues auf GitHub prüfen.
Quellen und Pflege
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗
- EyrisCrafts/wordSelectableText · GitHub ↗
- GitHub Docs — Saving repositories with stars ↗
- Verzeichnis gepflegt von Ducafecat ↗