|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.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),
|
|
|
|
padding: EdgeInsets.only(top: 12.h,left: 12,),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
// color: Colors.white,
|
|
|
|
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: [
|
|
|
|
GestureDetector(
|
|
|
|
onTap: (){
|
|
|
|
// Navigator.of(context).pushNamed('/router/mine_greenery');
|
|
|
|
},
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Expanded(child: Text(
|
|
|
|
"我的${DateTime.now().month}月足迹日历",
|
|
|
|
style: TextStyle(
|
|
|
|
color: Color(0xFF0D0D0D),
|
|
|
|
fontWeight: MyFontWeight.semi_bold,
|
|
|
|
fontSize: 15.sp,
|
|
|
|
),
|
|
|
|
),),
|
|
|
|
// Text(
|
|
|
|
// "查看绿叶",
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: Color(0xFF000000),
|
|
|
|
// fontWeight: MyFontWeight.regular,
|
|
|
|
// fontSize: 15.sp,
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// Icon(
|
|
|
|
// Icons.navigate_next,
|
|
|
|
// size: 24,
|
|
|
|
// color: Colors.black,
|
|
|
|
// ),
|
|
|
|
// SizedBox(width:12,),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(height: 12,),
|
|
|
|
CalendarPage(),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Image.asset(
|
|
|
|
"assets/image/calendar.webp",
|
|
|
|
width:25,
|
|
|
|
height: 50,
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
),
|
|
|
|
],
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|