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.

88 lines
2.5 KiB

3 years ago
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
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(
3 years ago
margin: EdgeInsets.fromLTRB(14.w, 20.h, 14.w, 30.h),
padding: EdgeInsets.only(top: 12.h,left: 12,),
3 years ago
decoration: BoxDecoration(
3 years ago
// color: Colors.white,
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,
)
],
),
3 years ago
child: Stack(
alignment: Alignment.bottomRight,
3 years ago
children: [
3 years ago
Column(
crossAxisAlignment: CrossAxisAlignment.start,
3 years ago
children: [
3 years ago
GestureDetector(
onTap: (){
Navigator.of(context).pushNamed('/router/mine_greenery');
},
child: Row(
children: [
Expanded(child: Text(
"我的5月足迹日历",
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,),
],
3 years ago
),
),
3 years ago
SizedBox(height: 12,),
CalendarPage(),
3 years ago
],
),
3 years ago
Image.asset(
"assets/image/calendar.webp",
width:25,
height: 50,
fit: BoxFit.fill,
),
3 years ago
],
3 years ago
)
3 years ago
);
}
}