No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to fixed footer in mobile?

    Help
    2
    3
    1131
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      teo last edited by

      Screenshot 2020-01-19 at 6.30.25 PM.png

      Hello, my problem is when I scrolling down, the footer will show the whitespace of the screen. I’m trying to create a mobile apps that have a fixed footer at the bottom of the screen. Am I using the wrong q-layout settings? Below is my code, please help and guide me to create a fixed footer. ☺

      This is my q-layout

        <q-layout view="hHh Lpr fFf">
          <router-view name="header" />
          <router-view name="drawer" />
          <router-view name="footer" />
          <q-page-container>
            <router-view />
          </q-page-container>
        </q-layout>
      

      Footer

        <q-footer elevated reveal>
          <q-toolbar>
            <q-btn flat icon="home" class="q-mr-sm" />
            <q-space />
            <q-btn
              flat
              color="text-black"
              icon="description"
            />
            <q-space />
            <q-btn flat icon="person_pin" class="q-mr-sm" />
          </q-toolbar>
        </q-footer>
      
      1 Reply Last reply Reply Quote 0
      • J
        jrhopkins83 last edited by

        I have the exact sam issue. It looks fine in Chrome browser and in the iOS xCode simulator but not on an actual device.
        <q-footer class=“fixed-bottom”>
        <q-tabs
        v-model=“tab”
        shrink
        stretch
        align=“justify”
        class=“bg-primary text-white”
        :breakpoint=“0”
        >
        <q-tab
        name=“back”
        icon=“arrow_back”
        @click="$router.go(-1)"
        />
        <q-tab
        name=“home”
        icon=“home”
        @click="$router.push(’/’)"
        />
        </q-tabs>
        </q-footer>

        1 Reply Last reply Reply Quote 0
        • J
          jrhopkins83 last edited by

          I think the issue is with Cordova. After searching, there were multiple issues on stack overflow and other sites and I found this article on Medium: https://blog.phonegap.com/displaying-a-phonegap-app-correctly-on-the-iphone-x-c4a85664c493.

          I’m using Icon-genie to build my icons and splash screens so I was afraid modifying the splash screen and config.xml wouldn’t work.

          Coincidentally I started looking at Capacitor since Ionic seems to be a more popular mobile development framework. I searched for the same screen issue with Ionic and only found one from a couple of years ago.

          So I rebuilt the app with Capacitor and the screen displays correctly. This is a new app (actually my first) and I haven’t yet used any additional Cordova plugins, so I have the luxury of being able to convert it. I’ve read that most Cordova plugins are supported by Ionic but there are some that aren’t. If you have the flexibility and want to try that out just follow similar instructions for Capacitor.
          https://quasar.dev/quasar-cli/developing-capacitor-apps/preparation

          1 Reply Last reply Reply Quote 0
          • First post
            Last post