Skip to content

Instantly share code, notes, and snippets.

@noga-dev
Created July 14, 2019 20:55
Show Gist options
  • Save noga-dev/84efac8dc58e53250403a240e58e95a8 to your computer and use it in GitHub Desktop.
Save noga-dev/84efac8dc58e53250403a240e58e95a8 to your computer and use it in GitHub Desktop.
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