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
import 'package:flutter/material.dart'; | |
import 'home_page.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
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
import 'package:flutter/material.dart'; | |
import 'package:flutter/widgets.dart'; | |
import 'package:flutter_qr_scanner/text_screen.dart'; | |
import 'package:qr_code_scanner/qr_code_scanner.dart'; | |
class Scanner extends StatefulWidget { | |
final Widget child; | |
Scanner({this.child}); | |
@override | |
_ScannerState createState() => _ScannerState(); |
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
import 'package:flutter/material.dart'; | |
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart'; | |
class TextScreen extends StatefulWidget { | |
final VoidCallback onClose; | |
String text; | |
TextScreen(String text, {this.onClose}) : super() { | |
this.text = text; | |
} |