import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; class ToQrcode extends StatefulWidget { const ToQrcode({super.key}); @override State createState() => _ToQrcodeState(); } class _ToQrcodeState extends State { @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("点击上传图片")], ), ), ), ], ), ), ); } }