|
|
@@ -30,10 +30,44 @@ class HomePage extends BasePage<HomePageController> {
|
|
|
child: CustomScrollView(
|
|
|
slivers: [
|
|
|
SliverToBoxAdapter(
|
|
|
- child: Container(
|
|
|
- padding: EdgeInsets.all(16),
|
|
|
- color: Colors.blue,
|
|
|
- child: Text('头部', style: TextStyle(color: Colors.white)),
|
|
|
+ child: Column(
|
|
|
+ children: [
|
|
|
+ SizedBox(height: 7.h),
|
|
|
+ Padding(
|
|
|
+ padding: const EdgeInsets.symmetric(horizontal: 12).w,
|
|
|
+ child: Row(
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
+ children: [
|
|
|
+ Text(StringName.homeTalkRecord.tr,
|
|
|
+ style: TextStyle(
|
|
|
+ fontWeight: FontWeight.bold,
|
|
|
+ fontSize: 17.sp,
|
|
|
+ color: ColorName.primaryTextColor)),
|
|
|
+ const Spacer(),
|
|
|
+ GestureDetector(
|
|
|
+ onTap: () {},
|
|
|
+ child: Row(
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
+ children: [
|
|
|
+ Text(
|
|
|
+ StringName.homeTalkSeeAll.tr,
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 13.sp,
|
|
|
+ color: ColorName.secondaryTextColor),
|
|
|
+ ),
|
|
|
+ SizedBox(
|
|
|
+ width: 16.w,
|
|
|
+ height: 16.w,
|
|
|
+ child: Assets.images.iconHomeTalkArrow
|
|
|
+ .image()),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ SizedBox(height: 12.h),
|
|
|
+ ],
|
|
|
),
|
|
|
),
|
|
|
SliverList(
|
|
|
@@ -77,7 +111,7 @@ class HomePage extends BasePage<HomePageController> {
|
|
|
style: TextStyle(
|
|
|
fontWeight: FontWeight.bold,
|
|
|
fontSize: 15.sp,
|
|
|
- color: ColorName.commonTxtColor))
|
|
|
+ color: ColorName.primaryTextColor))
|
|
|
],
|
|
|
),
|
|
|
),
|
|
|
@@ -92,6 +126,7 @@ class HomePage extends BasePage<HomePageController> {
|
|
|
padding:
|
|
|
const EdgeInsets.symmetric(horizontal: 8, vertical: 2).w,
|
|
|
child: Row(
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
children: [
|
|
|
SizedBox(
|
|
|
width: 28.w,
|