You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
2.0 KiB

3 years ago
import 'package:flutter/material.dart';
2 weeks ago
import 'package:huixiang/utils/constant.dart';
3 years ago
import 'package:huixiang/utils/font_weight.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
3 years ago
import 'calendar_page.dart';
3 years ago
class MineCalendar extends StatefulWidget {
@override
State<StatefulWidget> createState() {
return _MineCalendar();
}
}
class _MineCalendar extends State<MineCalendar> {
@override
Widget build(BuildContext context) {
return Container(
2 weeks ago
margin: EdgeInsets.fromLTRB(
14.w, 0.h, 14.w, 30.h,
),
alignment: Alignment.center,
3 years ago
decoration: BoxDecoration(
3 years ago
image: DecorationImage(
fit: BoxFit.cover,
image: AssetImage("assets/image/s_bg.webp"),
),
3 years ago
borderRadius: BorderRadius.circular(8),
boxShadow: [
BoxShadow(
color: Colors.black.withAlpha(12),
3 years ago
offset: Offset(0, 2),
blurRadius: 4,
3 years ago
spreadRadius: 0,
2 weeks ago
),
3 years ago
],
),
3 years ago
child: Stack(
alignment: Alignment.bottomRight,
3 years ago
children: [
3 years ago
Column(
crossAxisAlignment: CrossAxisAlignment.start,
3 years ago
children: [
2 weeks ago
12.d,
3 years ago
GestureDetector(
onTap: (){
3 years ago
// Navigator.of(context).pushNamed('/router/mine_greenery');
3 years ago
},
child: Row(
children: [
2 weeks ago
12.vd,
Text(
3 years ago
"我的${DateTime.now().month}月足迹日历",
3 years ago
style: TextStyle(
color: Color(0xFF0D0D0D),
fontWeight: MyFontWeight.semi_bold,
fontSize: 15.sp,
),
2 weeks ago
),
3 years ago
],
3 years ago
),
),
3 years ago
CalendarPage(),
3 years ago
],
),
3 years ago
Image.asset(
"assets/image/calendar.webp",
width:25,
height: 50,
fit: BoxFit.fill,
),
3 years ago
],
2 weeks ago
),
3 years ago
);
}
}