|
|
|
|
@ -40,7 +40,7 @@ class _DashboardSwipeWidgetState extends State<DashboardSwipeWidget> {
|
|
|
|
|
return getSwipeWidget(widget.dashboardItemList, index);
|
|
|
|
|
},
|
|
|
|
|
itemCount: 3,
|
|
|
|
|
itemHeight: 300,
|
|
|
|
|
// itemHeight: 300,
|
|
|
|
|
pagination: new SwiperCustomPagination(
|
|
|
|
|
builder: (BuildContext context, SwiperPluginConfig config) {
|
|
|
|
|
return new Stack(
|
|
|
|
|
@ -82,22 +82,22 @@ class _DashboardSwipeWidgetState extends State<DashboardSwipeWidget> {
|
|
|
|
|
Widget getSwipeWidget(List<DashboardModel> dashboardItemList, int index) {
|
|
|
|
|
if (index == 1)
|
|
|
|
|
return RoundedContainer(
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.35,
|
|
|
|
|
margin: EdgeInsets.only(top: 15, bottom: 15, left: 10, right: 10),
|
|
|
|
|
raduis: 16,
|
|
|
|
|
margin: EdgeInsets.only(top: 20, bottom: 20, left: 10, right: 10),
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.all(5.0),
|
|
|
|
|
child: GetOutPatientStack(dashboardItemList[1])));
|
|
|
|
|
if (index == 0)
|
|
|
|
|
return RoundedContainer(
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.35,
|
|
|
|
|
margin: EdgeInsets.only(top: 15, bottom: 15, left: 10, right: 10),
|
|
|
|
|
raduis: 16,
|
|
|
|
|
margin: EdgeInsets.only(top: 20, bottom: 20, left: 10, right: 10),
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.all(5.0),
|
|
|
|
|
child: GetOutPatientStack(dashboardItemList[0])));
|
|
|
|
|
if (index == 2)
|
|
|
|
|
return RoundedContainer(
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.35,
|
|
|
|
|
margin: EdgeInsets.only(top: 15, bottom: 15, left: 10, right: 10),
|
|
|
|
|
raduis: 16,
|
|
|
|
|
margin: EdgeInsets.only(top: 20, bottom: 20, left: 10, right: 10),
|
|
|
|
|
child:
|
|
|
|
|
Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
@ -122,16 +122,19 @@ class _DashboardSwipeWidgetState extends State<DashboardSwipeWidget> {
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(TranslationBase.of(context)
|
|
|
|
|
.patients,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontHeight: 0.5,),
|
|
|
|
|
AppText(TranslationBase.of(context)
|
|
|
|
|
.referral,
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.patients,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontHeight: 0.5,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.referral,
|
|
|
|
|
fontSize: 22,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
))),
|
|
|
|
|
Expanded(
|
|
|
|
|
|