Merge branch 'development_new_design_2.0' into haroon-new-design

merge-requests/400/head
haroon amjad 3 years ago
commit a2e25f7a7a

@ -35,9 +35,9 @@ class _SearchResultsState extends State<SearchResults> {
physics: BouncingScrollPhysics(),
separatorBuilder: (context, index) {
return Container(
height: 1,
height: 12,
margin: EdgeInsets.only(left: 21, right: 21),
color: Color(0xffD9D9D9),
// color: Color(0xffD9D9D9),
);
},
itemBuilder: (context, index) {

@ -341,9 +341,9 @@ class _MyAppointmentsState extends State<MyAppointments> with SingleTickerProvid
padding: EdgeInsets.only(top: 12),
separatorBuilder: (context, index) {
return Container(
height: 1,
height: 12,
margin: EdgeInsets.only(left: 21, right: 21),
color: Color(0xffD9D9D9),
// color: Color(0xffD9D9D9),
);
},
itemBuilder: (context, index) {

@ -33,9 +33,9 @@ class AskDoctorPage extends StatelessWidget {
padding: EdgeInsets.only(top: 12),
separatorBuilder: (context, index) {
return Container(
height: 1,
height: 12,
margin: EdgeInsets.only(left: 21, right: 21),
color: Color(0xffD9D9D9),
// color: Color(0xffD9D9D9),
);
},
itemBuilder: (context, index) {

@ -50,9 +50,9 @@ class DoctorHomePage extends StatelessWidget {
physics: BouncingScrollPhysics(),
separatorBuilder: (context, index) {
return Container(
height: 1,
height: 12,
margin: EdgeInsets.only(left: 21, right: 21),
color: Color(0xffD9D9D9),
// color: Color(0xffD9D9D9),
);
},
itemBuilder: (context, index) {

@ -44,9 +44,9 @@ class EyeMeasurementsPage extends StatelessWidget {
padding: EdgeInsets.only(top: 12),
separatorBuilder: (context, index) {
return Container(
height: 1,
height: 12,
margin: EdgeInsets.only(left: 21, right: 21),
color: Color(0xffD9D9D9),
// color: Color(0xffD9D9D9),
);
},
itemBuilder: (context, index) {

@ -54,9 +54,9 @@ class LabsHomePage extends StatelessWidget {
padding: EdgeInsets.only(top: 12),
separatorBuilder: (context, index) {
return Container(
height: 1,
height: 12,
margin: EdgeInsets.only(left: 21, right: 21),
color: Color(0xffD9D9D9),
// color: Color(0xffD9D9D9),
);
},
itemBuilder: (context, index) {

@ -44,9 +44,9 @@ class PrescriptionsPage extends StatelessWidget {
shrinkWrap: true,
separatorBuilder: (context, index) {
return Container(
height: 1,
height: 12,
margin: EdgeInsets.only(left: 21, right: 21),
color: Color(0xffD9D9D9),
// color: Color(0xffD9D9D9),
);
},
itemBuilder: (context, index) {

@ -57,9 +57,9 @@ class RadiologyHomePage extends StatelessWidget {
padding: EdgeInsets.only(top: 12),
separatorBuilder: (context, index) {
return Container(
height: 1,
height: 12,
margin: EdgeInsets.only(left: 21, right: 21),
color: Color(0xffD9D9D9),
// color: Color(0xffD9D9D9),
);
},
itemBuilder: (context, index) {

@ -54,9 +54,13 @@ class DoctorCard extends StatelessWidget {
borderRadius: BorderRadius.all(
Radius.circular(10.0),
),
border: Border.all(
width: 1, //
color: Color(0xffEFEFEF) // <--- border width here
),
boxShadow: [
BoxShadow(
color: Color(0xff000000).withOpacity(.05),
color: Color(0xff000000).withOpacity(.01),
//spreadRadius: 5,
blurRadius: 27,
offset: Offset(0, -3),

@ -48,79 +48,82 @@ class _AppExpandableNotifier extends State<AppExpandableNotifier> {
_title = _title.toLowerCase().capitalizeFirstofEach;
}
return ExpandableNotifier(
child: Column(
children: <Widget>[
SizedBox(
child: widget.headerWidget,
),
ScrollOnExpand(
scrollOnExpand: true,
scrollOnCollapse: false,
child: ExpandablePanel(
hasIcon: false,
theme: const ExpandableThemeData(
headerAlignment: ExpandablePanelHeaderAlignment.center,
tapBodyToCollapse: true,
),
header: Padding(
padding: const EdgeInsets.only(top: 12, bottom: 12, left: 21, right: 21),
child: InkWell(
onTap: () {
setState(() {
widget.expandFlag = !widget.expandFlag;
widget.controller.expanded = widget.expandFlag;
});
},
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Expanded(
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (_mainTitle.isNotEmpty && widget.isTitleSingleLine)
Text(
_mainTitle,
style: TextStyle(fontSize: 20, fontWeight: FontWeight.w600, color: Color(0xff2E303A), letterSpacing: -0.72, height: 1),
),
if (_title.isNotEmpty && !widget.isTitleSingleLine)
Text(
_title,
maxLines: 1,
style: TextStyle(fontSize: 24, fontWeight: FontWeight.w700, color: Color(0xff2E303A), letterSpacing: -1.44, height: 25 / 24),
),
if (_subTitle.isNotEmpty && !widget.isTitleSingleLine)
Text(
_subTitle,
maxLines: 1,
style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600, color: Color(0xff2E303A), letterSpacing: -0.72, height: 23 / 12),
),
],
child: Container(
color: Colors.white,
child: Column(
children: <Widget>[
SizedBox(
child: widget.headerWidget,
),
ScrollOnExpand(
scrollOnExpand: true,
scrollOnCollapse: false,
child: ExpandablePanel(
hasIcon: false,
theme: const ExpandableThemeData(
headerAlignment: ExpandablePanelHeaderAlignment.center,
tapBodyToCollapse: true,
),
header: Padding(
padding: const EdgeInsets.only(top: 12, bottom: 12, left: 21, right: 21),
child: InkWell(
onTap: () {
setState(() {
widget.expandFlag = !widget.expandFlag;
widget.controller.expanded = widget.expandFlag;
});
},
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Expanded(
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (_mainTitle.isNotEmpty && widget.isTitleSingleLine)
Text(
_mainTitle,
style: TextStyle(fontSize: 20, fontWeight: FontWeight.w600, color: Color(0xff2E303A), letterSpacing: -0.72, height: 1),
),
if (_title.isNotEmpty && !widget.isTitleSingleLine)
Text(
_title,
maxLines: 1,
style: TextStyle(fontSize: 24, fontWeight: FontWeight.w700, color: Color(0xff2E303A), letterSpacing: -1.44, height: 25 / 24),
),
if (_subTitle.isNotEmpty && !widget.isTitleSingleLine)
Text(
_subTitle,
maxLines: 1,
style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600, color: Color(0xff2E303A), letterSpacing: -0.72, height: 23 / 12),
),
],
),
),
Icon(
widget.expandFlag ? Icons.keyboard_arrow_up : Icons.keyboard_arrow_down,
color: Color(0xff2E303A),
// size: 30.0,
),
),
Icon(
widget.expandFlag ? Icons.keyboard_arrow_up : Icons.keyboard_arrow_down,
color: Color(0xff2E303A),
// size: 30.0,
),
],
],
),
),
),
collapsed: widget.collapsed ?? Container(),
expanded: widget.bodyWidget,
builder: (_, collapsed, expanded) {
return Expandable(
controller: widget.controller,
collapsed: collapsed,
expanded: expanded,
theme: const ExpandableThemeData(crossFadePoint: 0),
);
},
),
collapsed: widget.collapsed ?? Container(),
expanded: widget.bodyWidget,
builder: (_, collapsed, expanded) {
return Expandable(
controller: widget.controller,
collapsed: collapsed,
expanded: expanded,
theme: const ExpandableThemeData(crossFadePoint: 0),
);
},
),
),
],
],
),
),
);
}

Loading…
Cancel
Save