File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change
1
+ import 'dart:ui' as ui;
2
+
1
3
import 'package:flutter/material.dart' ;
2
4
import 'package:flutter/services.dart' ;
3
5
import 'package:wechat_camera_picker/wechat_camera_picker.dart' ;
@@ -14,12 +16,13 @@ class MyApp extends StatelessWidget {
14
16
@override
15
17
Widget build (BuildContext context) {
16
18
return MaterialApp (
17
- title: 'Flutter Demo' ,
19
+ title: 'WeChat Camera Picker Demo' ,
18
20
theme: ThemeData (
21
+ brightness: MediaQueryData .fromWindow (ui.window).platformBrightness,
19
22
primarySwatch: Colors .blue,
20
23
visualDensity: VisualDensity .adaptivePlatformDensity,
21
24
),
22
- home: const MyHomePage (title: 'Flutter Demo Home Page ' ),
25
+ home: const MyHomePage (title: 'WeChat Camera Picker Demo ' ),
23
26
);
24
27
}
25
28
}
@@ -40,7 +43,7 @@ class _MyHomePageState extends State<MyHomePage> {
40
43
appBar: AppBar (
41
44
title: Text (widget.title),
42
45
),
43
- body: const Center (),
46
+ body: const Center (child : Text ( 'Click the button to start picking.' ) ),
44
47
floatingActionButton: FloatingActionButton (
45
48
onPressed: () {
46
49
CameraPicker .pickFromCamera (
You can’t perform that action at this time.
0 commit comments