This commit is contained in:
bluesea 2024-05-13 18:02:28 +08:00
parent 6a19c6e00d
commit 773d994f0a

View File

@ -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(
),
],
),
),
),
),
],
),