69 lines
1.8 KiB
Dart
69 lines
1.8 KiB
Dart
import 'package:flutter/material.dart';
|
|
import '/common/colorCom.dart';
|
|
|
|
class Stock extends StatefulWidget {
|
|
const Stock({super.key});
|
|
@override
|
|
State<Stock> createState() => _StockPageState();
|
|
}
|
|
|
|
|
|
class _StockPageState extends State<Stock> {
|
|
|
|
final _searchTextController = TextEditingController(); // 查询输入框
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
iconTheme: const IconThemeData(
|
|
color: Colors.white
|
|
),
|
|
leading: IconButton(onPressed: () {
|
|
Navigator.of(context).pop();
|
|
}, icon: const Icon(Icons.arrow_back)),
|
|
centerTitle: true,
|
|
backgroundColor: ColorCommon.colorScheme,
|
|
title: const Text(
|
|
"库存管理",
|
|
style: TextStyle(
|
|
color: Colors.white
|
|
)),
|
|
),
|
|
body: Center(
|
|
child: Padding(padding: const EdgeInsets.only(
|
|
left: 20,
|
|
right: 20,
|
|
top: 10
|
|
), child: ListView(
|
|
children: [
|
|
TextField(
|
|
decoration: const InputDecoration(
|
|
labelText: "查询参数:",
|
|
),
|
|
controller: _searchTextController,
|
|
),
|
|
Padding(padding: const EdgeInsets.only(
|
|
top: 10
|
|
), child: ElevatedButton(
|
|
onPressed: search,
|
|
style: ButtonStyle(
|
|
backgroundColor: WidgetStateProperty.all(ColorCommon.colorScheme),
|
|
),
|
|
child: const Text(
|
|
"查询",
|
|
style: TextStyle(
|
|
color: Colors.white
|
|
))
|
|
))
|
|
],
|
|
),),
|
|
),
|
|
);
|
|
}
|
|
|
|
|
|
void search() {
|
|
|
|
}
|
|
} |