ss
This commit is contained in:
parent
281ceae9e5
commit
33537c10fd
@ -41,4 +41,9 @@
|
||||
<data android:mimeType="text/plain"/>
|
||||
</intent>
|
||||
</queries>
|
||||
|
||||
<!-- 写权限 -->
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
||||
<!-- 读权限 -->
|
||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
||||
</manifest>
|
||||
|
||||
@ -21,14 +21,16 @@ class WallPaperApp extends StatefulWidget {
|
||||
class _WallPaperAppState extends State<WallPaperApp> {
|
||||
@override
|
||||
Widget build(BuildContext context){
|
||||
return MaterialApp(
|
||||
title: 'wall paper',
|
||||
theme: ThemeData(
|
||||
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepOrange),
|
||||
useMaterial3: true,
|
||||
),
|
||||
home: const RootWidget(title:'root widget title'),
|
||||
);
|
||||
// return MaterialApp(
|
||||
// title: 'wall paper',
|
||||
// debugShowCheckedModeBanner: false,
|
||||
// theme: ThemeData(
|
||||
// colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepOrange),
|
||||
// useMaterial3: true,
|
||||
// ),
|
||||
// home: const RootWidget(title:'root widget title'),
|
||||
// );
|
||||
return const RootWidget(title:'root widget title');
|
||||
}
|
||||
}
|
||||
|
||||
@ -49,6 +51,7 @@ class _RootWidgetState extends State<RootWidget> {
|
||||
builder: (context,widget){
|
||||
return GetMaterialApp(
|
||||
title:'Getmaterial app title',
|
||||
debugShowCheckedModeBanner: false,
|
||||
theme: ThemeData.light(useMaterial3: true).copyWith(
|
||||
primaryColor: Colors.blue,
|
||||
),
|
||||
|
||||
@ -23,6 +23,7 @@ class HomePageView extends GetView <HomePageController> {
|
||||
// );
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
centerTitle: true,
|
||||
title: const Text(title),
|
||||
),
|
||||
|
||||
|
||||
@ -16,12 +16,18 @@ class ImgScanPageView extends GetView<ImgScanPageController> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
extendBodyBehindAppBar: true,
|
||||
backgroundColor: Colors.black,
|
||||
appBar: AppBar(
|
||||
appBar: PreferredSize(
|
||||
preferredSize: const Size.fromHeight(44),
|
||||
child: AppBar(
|
||||
centerTitle: true,
|
||||
title: const Text("查看大图"),
|
||||
|
||||
backgroundColor: Colors.transparent,
|
||||
foregroundColor: Colors.white,
|
||||
),
|
||||
),
|
||||
body: Stack(
|
||||
children: [
|
||||
PhotoViewGallery.builder(
|
||||
|
||||
@ -380,10 +380,10 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: image_gallery_saver
|
||||
sha256: be812580c7a320d3bf583af89cac6b376f170d48000aca75215a73285a3223a0
|
||||
sha256: "0aba74216a4d9b0561510cb968015d56b701ba1bd94aace26aacdd8ae5761816"
|
||||
url: "https://pub.flutter-io.cn"
|
||||
source: hosted
|
||||
version: "1.7.1"
|
||||
version: "2.0.3"
|
||||
io:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
||||
@ -56,7 +56,7 @@ dependencies:
|
||||
crypto: ^3.0.3
|
||||
|
||||
#将图片导出到相册
|
||||
image_gallery_saver: ^1.7.1
|
||||
image_gallery_saver: ^2.0.3
|
||||
permission_handler: ^10.0.0
|
||||
# The following adds the Cupertino Icons font to your application.
|
||||
# Use with the CupertinoIcons class for iOS style icons.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user