'Scrollview is not working in kivy gui in .py with MDFloatLayout

I am unable to find that what mistake i did in this code because the Scrollview is not working with MDFloatLayout in the .py file Code Problem Part Reference:- In class FirstWin there is a variable called scrollbar which refers the ScrollView and the variable called secondary_widget refers the MDFloatLayout which is the Child widget of the ScrollView and the whole content under the secondary_widget that's the content which i want to scroll. The whole Source code is here:

from kivymd.app import MDApp
from kivymd.uix.card import MDCard
from kivymd.uix.behaviors import RoundedRectangularElevationBehavior
from kivy.uix.screenmanager import ScreenManager,Screen
from kivymd.uix.fitimage import FitImage
from kivymd.uix.floatlayout import MDFloatLayout
from kivy.lang.builder import Builder
from kivymd.uix.widget import MDWidget
from kivy.uix.widget import Widget
from kivy.uix.button import Button
from kivy.core.window import Window
from kivy.uix.scrollview import ScrollView
from kivymd.uix.screen import MDScreen
from kivy.uix.boxlayout import BoxLayout
# Set the Window Size
Window.size=(1280,800)

class mainHeading(MDWidget,Widget):
    pass


class Elevation(RoundedRectangularElevationBehavior,MDCard):
    pass


class FirstWin(RoundedRectangularElevationBehavior,Screen,mainHeading):
    textReference=[]
    Cord_list=[(0.1,0.8),(0.4,0.8),(0.7,0.8),(0.1,0.36)]
    def __init__(self,**kwargs):
        super(FirstWin,self).__init__(**kwargs)
        main_widget=MDFloatLayout(size_hint=(1,1))
        scrollbar=ScrollView(bar_color=(0,0,1,1),bar_width=5)
        secondary_widget=MDFloatLayout(size=(main_widget.width,main_widget.height))

        for i in range(0,4):
            mycard=Elevation(
                elevation=15,
                size_hint =(0.2,0.4),
                pos_hint={'x':self.Cord_list[i][0],'top':self.Cord_list[i][1]},
                orientation='vertical',
                radius= [36, ],
                ripple_behavior=True,
                focus_behavior=True

            )
            mycard.bind(size=self.adjust_sizes)
            image = FitImage(radius=[36,36,0,0],size_hint_y=3, size_hint_x=1,orientation="vertical")
            imagebutton = Button(background_normal="D:/Study/Python/Kivy/images/1.jpg",
                                 background_down="D:/Study/Python/Kivy/images/1.jpg",
                                 size_hint_y=550.0,
                                 size_hint_x=1,
                                 pos_hint={'x': 0, 'y': 0}
                                 )
            imagebutton.bind(on_release=lambda x:self.say_hellow())
            texture_part = MDFloatLayout( md_bg_color=(46 / 255, 8 / 255, 211 / 255, .5),
                                         radius=[0, 0, 36, 36])
            main_text = Button(
                text="Tea and Coffee",
                halign="left",
                bold=True,
                pos_hint={'center_x': 0.4, 'top':1.2},
                size_hint=(1, None),
                font_size=mycard.width /6,
                background_normal='',
                background_color=(0, 0, 0, 0)
            )
            main_text.bind(on_release=lambda x:self.say_hellow())
            self.textReference.append(main_text)
            Hint_text = Button(
                text="Food Menu",
                halign="left",
                font_size=mycard.width/6,
                bold=True,
                color=(206 / 255, 203 / 255, 203 / 255, 0.2),
                pos_hint={'center_x': 0.3, 'top': 0.8},
                size_hint=(1, None),
                height=texture_part.height,
                background_normal='',
                background_color=(0, 0, 0, 0)
            )
            Hint_text.bind(on_release=lambda x:self.say_hellow())
            self.textReference.append(Hint_text)
            image.add_widget(imagebutton)
            mycard.add_widget(image)
            texture_part.add_widget(main_text)
            texture_part.add_widget(Hint_text)
            mycard.add_widget(texture_part)
            secondary_widget.add_widget(mycard)
        scrollbar.add_widget(secondary_widget)
        main_widget.add_widget(scrollbar)
        self.add_widget(main_widget)

    def adjust_sizes(self, mycard, new_size):
        new_font_size=0
        for i in range(0,len(self.textReference)):
            if i%2!=0:
                new_font_size = mycard.width / 15
            else:
                new_font_size=mycard.width/10
            self.textReference[i].font_size = new_font_size
    def say_hellow(self):
        print("you Pressed the Button!!")



class SecondWin(Screen):
    pass
class MymdCard(MDApp):
    def build(self):
        sm = ScreenManager()
        Builder.load_file("md_card_py.kv")
        self.theme_cls.theme_style = "Dark"

        sm.add_widget(FirstWin(name='welcomeScreen'))
        sm.add_widget(SecondWin(name='functionScreen'))
        return sm




if __name__ == '__main__':
    MymdCard().run()

The kivy Gui Application image:- In this you will see that the last one is not completely seen it's some part is hide from below (the last 4th one (2nd row 1st element)) so for that problem how i can implement the ScrollView with the MDFloatLayout so it will worked well and issue will get solved. if you know the answer please let me know also so it will prove very helpful for me.Thank You!!



Sources

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

Source: Stack Overflow

Solution Source