def METHOD_NAME(self, settings, section):
    settings = settings[section]
    section_settings = [ft.Divider(height=10, color="gray")]
    display_width = (self.content.width * 0.5) - 5
    for setting in settings:
        if "value" not in settings[setting]:
            continue
        new_row = SettingsDisplay()
        new_row
        display = None
        display_type = settings[setting]["display"]
        if display_type == "dropdown":
            option_list = []
            for i in range(len(settings[setting]["option_list"])):
                item = ft.dropdown.Option(text=settings[setting]["option_list"][i])
                option_list.append(item)
            display = ft.Dropdown(
                label=setting,
                value=settings[setting]["value"],
                options=option_list,
                on_change=new_row.settings_window_tab_setting_changed,
                data=section,
                content_padding=10,
                width=display_width,
            )
        elif display_type == "textinput":
            display = ft.TextField(
                label=setting,
                value=settings[setting]["value"],
                on_submit=new_row.settings_window_tab_setting_changed,
                data=section,
                content_padding=10,
                width=display_width,
            )
        elif display_type == "bool":
            display = ft.Switch(
                label=setting,
                value=settings[setting]["value"],
                on_change=new_row.settings_window_tab_setting_changed,
                data=section,
                width=display_width,
            )
        elif display_type == "slider":
            display = ft.Column(
                controls=self.get_settings_window_tab_page_setting_slider(
                    settings, section, setting, display_width
                ),
            )
        else:
            continue
        new_row.data = [self, section, setting]
        new_row.controls.append(display)
        section_settings.append(new_row)
    return section_settings