12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- import 'package:flutter/material.dart';
- ///STAFF START
- class StaffInfoPage extends StatefulWidget {
- static const routeName = '/staff';
- @override
- State<StatefulWidget> createState() => _StaffInfoState();
- }
- class _StaffInfoState extends State<StaffInfoPage> {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: Text("员工信息"),
- ),
- body: Card(
- child: Row(
- children: [
- Column(
- mainAxisSize: MainAxisSize.min,
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Text(
- "员工号:" + 8.toString(),
- style: TextStyle(fontSize: 15),
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Text("员工姓名:" + "xx学生"),
- ),
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Text("本次上岗时间:" +
- DateTime.now().toIso8601String().split("T")[0] +
- " " +
- DateTime.now().toIso8601String().split("T")[1]),
- )
- ],
- )
- ],
- ),
- ),
- );
- }
- }
- /// STAFF END
|