First in style=ft.ButtonStyle(ft.TextStyle(size=20))
you are putting TexStyle in color attribute of ButtonStyle, becouse this is fist attribute of ButtonStyle and you should use insted style=ft.ButtonStyle(text_style=ft.TextStyle(size=20))
to aim directly to correct attribute.