Buscar pacotes, repositórios e categorias de apps

Repositório GitHubEyrisCrafts/wordSelectableText

texto selecionável por palavra

EyrisCrafts/wordSelectableText open-source repository details.

Capa do projeto texto selecionável por palavra
Estrelas
16
Forks
2
Último push (UTC)
1 de ago. de 2021
Status do projeto
Ativo

README original

Texto original em inglês. Visite o GitHub para a versão atual.

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)
	    )),
    );
}

Waleed GitHub avatar
Autor no GitHub

Waleed ↗

Stardew fisher and dota2 feeder.

Oslo
LinguagensDart

Dependências usadas

Lista de dependências 2 itens

  • flutter{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}

Como escolher um repositório para seu projeto?

Filtre pelo caso de uso, compare a atividade e confira o projeto original antes de adotá-lo.

  1. Busque por nome, autor ou descrição e filtre por tema.
  2. Compare estrelas, forks e envios recentes. Estrelas indicam interesse, mas não garantem qualidade.
  3. Confira o README, a licença e as issues no GitHub antes de usar o projeto.

Fontes e manutenção

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗