mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
fix bugs
This commit is contained in:
@ -18,16 +18,25 @@ class HomeCard extends StatelessWidget {
|
||||
});
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
bool evenNumbers = index % 2 == 0;
|
||||
// bool evenNumbers = index % 2 == 0;
|
||||
return InkWell(
|
||||
onTap: active ? onTap : null,
|
||||
child: Container(
|
||||
padding: const EdgeInsets.only(left: 10,right: 10,bottom: 10),
|
||||
decoration: BoxDecoration(
|
||||
color: evenNumbers && active?
|
||||
ColorsManager.blueColor.withOpacity(0.8) :
|
||||
(active ?ColorsManager.blueColor
|
||||
: ColorsManager.blueColor.withOpacity(0.2)),
|
||||
color: index==0&&active?
|
||||
ColorsManager.blue1.withOpacity(0.9):
|
||||
index==1&&active?
|
||||
ColorsManager.blue2.withOpacity(0.9) :
|
||||
index==2&&active?
|
||||
ColorsManager.blue3:
|
||||
index==4&&active==false?
|
||||
ColorsManager.blue4.withOpacity(0.2):
|
||||
index==7&&active==false?
|
||||
ColorsManager.blue4.withOpacity(0.2):
|
||||
ColorsManager.blueColor.withOpacity(0.2),
|
||||
// (active ?ColorsManager.blueColor
|
||||
// : ColorsManager.blueColor.withOpacity(0.2)),
|
||||
borderRadius: BorderRadius.circular(30),
|
||||
),
|
||||
child: Column(
|
||||
|
Reference in New Issue
Block a user