class _cameraState extends State { void _navigateToicindekiler(BuildContext context) { tamresult = result; Navigator.of(context).push(MaterialPageRoute(builder: (context) => icindekiler(tamresult))); } } class icindekiler extends StatefulWidget { final String tamresult; const icindekiler(this.tamresult); @override _icindekilerState createState() => _icindekilerState(); } class _icindekilerState extends State { @override child: new DynamicTextHighlighting( text: widget.tamresult, highlights: redlist, color: Colors.redAccent, style: new TextStyle( fontSize: 25.0, color: Colors.black, ), caseSensitive: false, ), }