我们可以通过Get.bottomSheet()来显示BottomSheet,通过Get.back()实现路由返回,通过Get.changeTheme(ThemeData.dark())切换皮肤主题,通过Get.isDarkMode判断主题样式。 ElevatedButton(onPressed:(){Get.bottomSheet(Container(color:Get.isDarkMode?Colors.black12:Colors.white,height:200,child:Column(children:[ListTile...
return ElevatedButton( style: ElevatedButton.styleFrom( shape: const CircleBorder(), padding: const EdgeInsets.all(24), backgroundColor: ConfigColors.primaryColor, ), onPressed: () => toggleButton(), child: toggleIcon(context)); return Padding( padding: EdgeInsets.only(top: height(context) ...
Steps to reproduce Create a Form in your Flutter App using a TextFormField(). Localize your Flutter app according to the docs. Build simple form validation according to the docs, by returning a localized string via the validator (e.g. Ap...