Skip to content

Instantly share code, notes, and snippets.

View satishsoni777's full-sized avatar
🏠
Fluttering

Satish Kumar satishsoni777

🏠
Fluttering
  • Junglee Games
  • bangalore
View GitHub Profile
@satishsoni777
satishsoni777 / home.dart
Created August 28, 2019 10:43
home screen
import 'package:flutter/material.dart';
import 'home_page.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@satishsoni777
satishsoni777 / scanner.dart
Last active August 28, 2019 10:51
QR code scanner screen
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();
@satishsoni777
satishsoni777 / text_screen.dart
Created August 28, 2019 10:53
if text is containing a url then it will show a web view other wise a normal text screen.
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;
}