@ -2,11 +2,21 @@ import 'package:doctor_app_flutter/config/size_config.dart';
import ' package:doctor_app_flutter/widgets/shared/rounded_container_widget.dart ' ;
import ' package:flutter/material.dart ' ;
import ' package:hexcolor/hexcolor.dart ' ;
class ScheduleItemWidget extends StatelessWidget {
String title ;
String date ;
String location ;
ScheduleItemWidget ( this . title , this . date , this . location ) ;
class CardWithBgWidget extends StatelessWidget {
String line1Text ;
String line2Text ;
String line3Text ;
IconData icon ;
double heightPercentage ;
double widthPercentage ;
CardWithBgWidget (
{ this . line1Text = ' ' ,
this . line2Text = ' ' ,
this . line3Text = ' ' ,
this . icon ,
this . heightPercentage ,
this . widthPercentage } ) ;
@ override
Widget build ( BuildContext context ) {
@ -14,8 +24,8 @@ class ScheduleItemWidget extends StatelessWidget {
children: < Widget > [
RoundedContainer (
Container (
height: SizeConfig . screenHeight * 0.20 ,
width: SizeConfig . screenWidth * 0.80 ,
height: SizeConfig . screenHeight * heightPercentage ,
width: SizeConfig . screenWidth * widthPercentage ,
) ,
raduis: 10 ,
backgroundColor: Hexcolor ( ' #58434F ' ) ,
@ -28,23 +38,23 @@ class ScheduleItemWidget extends StatelessWidget {
child: RoundedContainer (
Container (
padding: const EdgeInsets . all ( 15.0 ) ,
height: SizeConfig . screenHeight * 0.20 ,
width: SizeConfig . screenWidth * 0.80 ,
height: SizeConfig . screenHeight * heightPercentage ,
width: SizeConfig . screenWidth * widthPercentage ,
child: Column (
crossAxisAlignment: CrossAxisAlignment . start ,
children: < Widget > [
Text ( title , style: textStyle ( 2.5 ) ) ,
Text ( line1Text , style: textStyle ( 2.5 ) ) ,
SizedBox (
height: 8 ,
) ,
Text ( date , style: textStyle ( 2.5 ) ) ,
Text ( line2Text , style: textStyle ( 2.5 ) ) ,
SizedBox (
height: 8 ,
) ,
Row (
children: < Widget > [
Icon ( Icons. add_locati on) ,
Text ( l ocat io n, style: textStyle ( 2.5 ) )
Icon ( ic on) ,
Text ( l ine3Text , style: textStyle ( 2.5 ) )
] ,
)
] ,