提交 21ceea79 authored 作者: yueweilu's avatar yueweilu

UI 修改

上级 2fddab5b
......@@ -167,8 +167,8 @@ class _BuildItemState extends State<BuildItem> {
});
},
child: SizedBox(
width: 20.w,
height: 20.w,
width: 12.w,
height: 6.w,
// color: Colors.red,
child: Image.asset('assets/images/down.png')
),
......
......@@ -27,7 +27,7 @@ class BuildItem extends StatelessWidget {
child: Text(
model.helpTitle ?? '',
style: TextStyle(
fontSize: 12.w, height: 1.5.w, color: Colours.c9),
fontSize: 12.w, height: 1.5.w, color: Colours.c3),
),
),
],
......
......@@ -47,7 +47,19 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver{
),
bottomNavigationBar: GetBuilder<MainController>(
id: 'navigation',
builder: (controller) => BottomNavigationBar(
builder: (controller) => Container(
decoration: BoxDecoration(
color: Colors.white,
boxShadow:[
BoxShadow(
color: const Color(0xFFE0E0E0).withOpacity(0.5),
spreadRadius: 0,
blurRadius: 4.5,
offset: const Offset(0, 0),
),
],
),
child: BottomNavigationBar(
currentIndex:controller.currentPage ,
onTap: (page){
if (page != 1 && !UserStore.to.isLogin) {
......@@ -121,6 +133,7 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver{
]
),
),
),
)
);
}
......
......@@ -82,10 +82,11 @@ class BuildDayItem extends StatelessWidget {
Expanded(
child: Container(
// color: Colors.green,
height: 86.w,
padding: EdgeInsets.only(top: 2.5.w,left: 13.w),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.start,
......@@ -95,7 +96,7 @@ class BuildDayItem extends StatelessWidget {
Text(courseModel.authors??'',style: TextStyle(fontSize: 12.w,height: 1.4,color: Colours.c6),),
],
),
Gaps.vGaps25,
// Gaps.vGaps25,
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
......@@ -107,7 +108,7 @@ class BuildDayItem extends StatelessWidget {
// Spacer(),
Container(
width: 120,
alignment: Alignment.centerRight,
alignment: Alignment.centerLeft,
child: Text('上次读到:${courseModel.lastChapter}',style: TextStyle(fontSize: 11.w,height: 1.3,color: Colours.c6),maxLines: 1,overflow: TextOverflow.ellipsis,),
)
],
......
......@@ -24,7 +24,11 @@ class BuildCard extends StatelessWidget {
right: 0,
child: Container(
padding: EdgeInsets.only(left: 17.5.w,top:25.w,right: 20.w,bottom: 20.w),
child: Row(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(model.bookName??'',style: TextStyle(fontSize: 18.w,height: 1.4,color: Colors.white,fontWeight: Fonts.boldSemi),),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.end,
children: [
......@@ -33,7 +37,7 @@ class BuildCard extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(model.bookName??'',style: TextStyle(fontSize: 18.w,height: 1.4,color: Colors.white,fontWeight: Fonts.boldSemi),),
// Text(model.bookName??'',style: TextStyle(fontSize: 18.w,height: 1.4,color: Colors.white,fontWeight: Fonts.boldSemi),),
Gaps.vGaps15,
Row(
children: [
......@@ -57,13 +61,15 @@ class BuildCard extends StatelessWidget {
]
),
),
Container(
CustomCard(
url: model.img ?? '',
height: 120.w,
width: 100.w,
child: CustomImage.network(url: model.img??''),
)
],
),
],
),
)
)
],
......
......@@ -378,8 +378,8 @@ class CustomInputSearch extends StatelessWidget {
onTap: onTap,
style: TextStyle(
// fontFamily: 'Sans',
fontSize: 16.w,
height: 1.2,
fontSize: 12.w,
height: 1.5,
),
decoration: InputDecoration(
border: OutlineInputBorder(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论