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 @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
backgroundColor: Colors.black,
appBar: AppBar( appBar: AppBar(
title: const Text("查看大图"), title: const Text("查看大图"),
backgroundColor: Colors.transparent,
foregroundColor: Colors.white,
), ),
body: Stack( body: Stack(
children: [ children: [
@ -54,14 +57,31 @@ class ImgScanPageView extends GetView {
), ),
Align( Align(
alignment: Alignment.bottomCenter, alignment: Alignment.bottomCenter,
child: SizedBox( child: Container(
height: 90, color: Colors.black.withAlpha(160),
width: 90, height: 100,
child: IconButton(onPressed: (){ width: double.infinity,
// print("download....."); child: Row(
}, mainAxisAlignment: MainAxisAlignment.center,
icon: const Icon(Icons.download), mainAxisSize: MainAxisSize.max,
color: Colors.white, // 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(
),
],
), ),
), ),
), ),