पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

GitHub रिपॉज़िटरीEyrisCrafts/wordSelectableText

शब्द चयन करने योग्य पाठ

EyrisCrafts/wordSelectableText open-source repository details.

शब्द चयन करने योग्य पाठ प्रोजेक्ट कवर
स्टार
16
फ़ोर्क
2
अंतिम पुश (UTC)
1 अग॰ 2021
प्रोजेक्ट स्थिति
सक्रिय

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री 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)
	    )),
    );
}

Waleed GitHub avatar
GitHub लेखक

Waleed ↗

Stardew fisher and dota2 feeder.

Oslo
भाषाएँDart

उपयोग की गई निर्भरताएँ

निर्भरता सूची 2 आइटम

  • flutter{"sdk":"flutter"}
  • flutter_testडेवलपमेंट{"sdk":"flutter"}

अपने प्रोजेक्ट के लिए रिपॉज़िटरी कैसे चुनें?

उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।

  1. नाम, लेखक या विवरण से खोजें और तकनीकी विषय से परिणाम सीमित करें।
  2. स्टार, फ़ोर्क और हाल के पुश की तुलना करें। स्टार रुचि दर्शाते हैं, गुणवत्ता की गारंटी नहीं।
  3. उपयोग से पहले GitHub पर README, लाइसेंस और Issues जाँचें।

स्रोत और रखरखाव

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

GitHub Docs — About repositories ↗