How to create a toggle/switch button in Flutter?
问题 I'm looking for a way to add a toggel / switch button in Flutter but so far haven't found the desired result. I'm creating the layout for an APP as it's in the attached screenshot but stuck on the toggle / switch button part which will switch the language of the APP . 回答1: Here's how you can implement the toggle design you wanted : import 'package:flutter/material.dart'; import 'package:get/get.dart'; class AnimatedToggle extends StatefulWidget { final List<String> values; final ValueChanged