Files
2026-08-29 20:02:34 +08:00

42 lines
1.1 KiB
Dart

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class ToQrcode extends StatefulWidget {
const ToQrcode({super.key});
@override
State<ToQrcode> createState() => _ToQrcodeState();
}
class _ToQrcodeState extends State<ToQrcode> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text("二维码生成器"), centerTitle: true),
body: Padding(
padding: EdgeInsets.symmetric(horizontal: 16),
child: Column(
children: [
Container(
width: 200,
height: 80,
child: TextField(decoration: InputDecoration(hintText: "输入文本可上传")),
),
ElevatedButton(
onPressed: () {},
child: Container(
width: 120,
height: 40,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [Icon(Icons.image), Text("点击上传图片")],
),
),
),
],
),
),
);
}
}