From 773d994f0a80e5bb1377076e39e99b294bb285ea Mon Sep 17 00:00:00 2001 From: bluesea <307723040@qq.com> Date: Mon, 13 May 2024 18:02:28 +0800 Subject: [PATCH] s --- .../pages/imgscanpage/imgscanpage_view.dart | 40 ++++++++++++++----- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/wallpaper/lib/pages/imgscanpage/imgscanpage_view.dart b/wallpaper/lib/pages/imgscanpage/imgscanpage_view.dart index 06b20b4..e45987d 100644 --- a/wallpaper/lib/pages/imgscanpage/imgscanpage_view.dart +++ b/wallpaper/lib/pages/imgscanpage/imgscanpage_view.dart @@ -15,8 +15,11 @@ class ImgScanPageView extends GetView { @override Widget build(BuildContext context) { return Scaffold( + backgroundColor: Colors.black, appBar: AppBar( title: const Text("查看大图"), + backgroundColor: Colors.transparent, + foregroundColor: Colors.white, ), body: Stack( children: [ @@ -53,17 +56,34 @@ class ImgScanPageView extends GetView { ), Align( - alignment: Alignment.bottomCenter, - child: SizedBox( - height: 90, - width: 90, - child: IconButton(onPressed: (){ - // print("download....."); - }, - icon: const Icon(Icons.download), - color: Colors.white, + alignment: Alignment.bottomCenter, + child: Container( + color: Colors.black.withAlpha(160), + height: 100, + width: double.infinity, + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + mainAxisSize: MainAxisSize.max, + // 交叉轴的布局方式,对于column来说就是水平方向的布局方式 + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + const Spacer( + ), + IconButton(onPressed:() { + print("download...."); + + }, icon: Icon(Icons.download),color: Colors.white,), + const Spacer( + ), + IconButton(onPressed:() { + print("设置壁纸"); + + }, icon: Icon(Icons.wallpaper),color: Colors.white,), + const Spacer( + ), + ], ), - ), + ), ), ], ),