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.
 
 
 
 
 
 

75 lines
2.0 KiB

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