Created
July 14, 2019 20:55
-
-
Save noga-dev/84efac8dc58e53250403a240e58e95a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() => runApp( | |
StatefulBuilder(builder: (context, setState) { | |
return MaterialApp( | |
home: Scaffold( | |
appBar: AppBar( | |
backgroundColor: Colors.white, | |
title: TextField( | |
style: TextStyle(fontSize: 22), | |
decoration: InputDecoration(hintText: "Search"), | |
onChanged: (t) { | |
setState(() => search = t); | |
}, | |
), | |
), | |
body: Scrollbar( | |
child: SingleChildScrollView( | |
child: RichText( | |
textScaleFactor: 2, | |
text: searchMatch( | |
text, | |
), | |
), | |
), | |
), | |
), | |
); | |
}), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment