dev_v2.8_reverting
Elham Rababh 4 years ago
parent 94a699a58f
commit 94e92e8937

@ -8,8 +8,7 @@ class HomePageCard extends StatelessWidget {
this.imageName,
required this.child,
required this.onTap,
Key? key,
required this.color,
Key? key, this.color,
this.opacity = 0.4,
required this.margin, this.width, this.gradient})
: super(key: key);
@ -17,7 +16,7 @@ class HomePageCard extends StatelessWidget {
final String? imageName;
final Widget child;
final GestureTapCallback onTap;
final Color color;
final Color ?color;
final double opacity;
final double? width;
final EdgeInsets margin;

@ -30,7 +30,7 @@ class HomePatientCard extends StatelessWidget {
double width = SizeConfig.heightMultiplier*
(SizeConfig.isHeightVeryShort ? 16 : SizeConfig.isHeightLarge?15:13);
return HomePageCard(
color: backgroundColor!,
// color: backgroundColor!,
width: width,
gradient: gradient,
margin: EdgeInsets.all(SizeConfig.widthMultiplier *1.121),

@ -340,32 +340,32 @@ class _HomeScreenState extends State<HomeScreen> {
colorIndex = 0;
List<LinearGradient> backgroundColors = [];
backgroundColors[0] = LinearGradient(
backgroundColors.add(LinearGradient(
begin: Alignment(-1.0, -2.0),
end: Alignment(1.0, 2.0),
colors: [
AppGlobal.appRedColor,Color(0xFFAD3B3B),
]);//AppGlobal.appRedColor;
backgroundColors[1] = LinearGradient(
]));//AppGlobal.appRedColor;
backgroundColors.add( LinearGradient(
begin: Alignment.center,
end: Alignment.center,
colors: [
Color(0xFFC9C9C9),Color(0xFFC9C9C9),
]);
backgroundColors[2] = LinearGradient(
]));
backgroundColors.add( LinearGradient(
begin: Alignment.center,
end: Alignment.center,
colors: [
Color(0xFF71787E),AppGlobal.appTextColor
]);
]));
List<Color> backgroundIconColors = [];
backgroundIconColors[0] = Colors.white12;
backgroundIconColors[1] = Colors.white38;
backgroundIconColors[2] = Colors.white10;
backgroundIconColors.add(Colors.white12);
backgroundIconColors.add(Colors.white38);
backgroundIconColors.add(Colors.white10);
List<Color> textColors = [];
textColors[0] = Colors.white;
textColors[1] = Color(0xFF353E47);
textColors[2] = Colors.white;
textColors.add(Colors.white);
textColors.add(Color(0xFF353E47));
textColors.add(Colors.white);
List<HomePatientCard> patientCards = [];

Loading…
Cancel
Save