Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
mobile_scanner
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Navaron Bracke
2023-11-03 17:26:07 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9d7cf2dbdbb2be51bc2592e2767c0a42ddb00b6f
9d7cf2db
1 parent
8a50d72e
adjust example title
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
example/lib/main.dart
example/lib/main.dart
View file @
9d7cf2d
...
...
@@ -8,7 +8,14 @@ import 'package:mobile_scanner_example/barcode_scanner_without_controller.dart';
import
'package:mobile_scanner_example/barcode_scanner_zoom.dart'
;
import
'package:mobile_scanner_example/mobile_scanner_overlay.dart'
;
void
main
(
)
=>
runApp
(
const
MaterialApp
(
home:
MyHome
()));
void
main
(
)
{
runApp
(
const
MaterialApp
(
title:
'Mobile Scanner Example'
,
home:
MyHome
(),
),
);
}
class
MyHome
extends
StatelessWidget
{
const
MyHome
({
super
.
key
});
...
...
@@ -16,7 +23,7 @@ class MyHome extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
appBar:
AppBar
(
title:
const
Text
(
'
Flutter Demo Home Pag
e'
)),
appBar:
AppBar
(
title:
const
Text
(
'
Mobile Scanner Exampl
e'
)),
body:
SizedBox
(
width:
MediaQuery
.
of
(
context
).
size
.
width
,
height:
MediaQuery
.
of
(
context
).
size
.
height
,
...
...
Please
register
or
login
to post a comment