title: Put Image in the Center of a Button - Kivy
body: <p>stuck again and looking for assistance.</p>
  
  <p>This time I am trying to center an image on a button along with the text below it.</p>
  
  <p>Here's a snippet from my code so far</p>
  
  <pre><code>Button:
                  canvas:
                      Rectangle:
                      # set rects size, pos = size, pos of the button
                          size:50,50
                          pos:self.pos
                          source:'icons/home.png'
  
                  text:'NCERT\nSolutions'
                  background_normal: ''
                  background_color: rgba("#FFFFE0")
                  color:0,0,0,1
                  halign:'center'
                  on_release:
                      app.root.current='flamingowindow'
  </code></pre>
  
  <p>and this gives the following result</p>
  
  <p><a href="https://i.stack.imgur.com/tAca8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tAca8.png" alt="enter image description here"></a>         </p>
  
  <p><strong>Objective</strong>: The icon should be in the middle of the button and the text below it.</p>