'KivyMD: set text on top of TextField

As the image below, I'm trying to set the text on the top of textField.

There's too many space between the text (above and below), so I'd like to set the text more close to the top line.

I already tried to search on kivy's documentation and here on the site, but not something helpful.

Code:

from kivymd.app import MDApp
from kivymd.uix.floatlayout import FloatLayout
from kivymd.uix.textfield import MDTextField
from kivy.lang import Builder
KV = '''
ScreenManager:
    Screen:
        BoxLayout:
            orientation: 'vertical'
            Screen:
<Screen>:
    ScrollView:
        MDList:
            spacing: '10dp'
            padding: '25dp'
            MDTextField:
                halign: 'center'
                multiline: True
                font_size: self.width / 25
                
            MDTextField:
                halign: 'center'
                font_size: self.width / 25
                mode: 'rectangle'
                multiline: True
            
            MDTextField:
                halign: 'center'
                font_size: self.width / 25
                multiline: True
                mode: 'fill'
'''
class Screen(FloatLayout):
    pass

class Aplicativo(MDApp):
    def build(self):
        return Builder.load_string(KV)  
Aplicativo().run()

I'm sorry if I was not comprehensive.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source