fix home page

merge-requests/648/head
Mohammad Aljammal 5 years ago
parent 4f817810c2
commit f0039b491e

@ -20,6 +20,7 @@ class DashboardViewModel extends BaseViewModel {
_dashboardService.dashboardItemsList; _dashboardService.dashboardItemsList;
Future setFirebaseNotification(ProjectViewModel projectsProvider, AuthViewModel authProvider) async{ Future setFirebaseNotification(ProjectViewModel projectsProvider, AuthViewModel authProvider) async{
setState(ViewState.Busy);
await projectsProvider.getDoctorClinicsList(); await projectsProvider.getDoctorClinicsList();
// _firebaseMessaging.setAutoInitEnabled(true); // _firebaseMessaging.setAutoInitEnabled(true);

@ -24,7 +24,7 @@ class HomePageCard extends StatelessWidget {
return InkWell( return InkWell(
onTap: onTap, onTap: onTap,
child: Container( child: Container(
width: 100, width: 120,
height: MediaQuery.of(context).orientation == Orientation.portrait height: MediaQuery.of(context).orientation == Orientation.portrait
? 100 ? 100
: 200, : 200,

@ -274,7 +274,7 @@ class _HomeScreenState extends State<HomeScreen> {
height: 10, height: 10,
), ),
Container( Container(
height: 100, height: 120,
child: ListView( child: ListView(
scrollDirection: Axis.horizontal, scrollDirection: Axis.horizontal,
children: [ children: [

Loading…
Cancel
Save