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

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

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

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

Loading…
Cancel
Save