效果图:
代码如下:
class title extends StatelessWidget {
const title({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child:Container(
height: 55,
padding: EdgeInsets.only(left: 15, right: 15),
decoration: BoxDecoration(
color: Colors.grey.withOpacity(0.1),
borderRadius: BorderRadius.circular(5)
),
child: Column(
children: [
SizedBox(height: 17,),
//调用
time()
],
)
),
),
);
}
}
class time extends StatefulWidget {
const time({Key? key}) : super(key: key);
@override
State<time> createState() =