我们可以通过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) ...
Widget _buildSignUpButton() { return ElevatedButton( onPressed: signupController.signUpFunction, style: ElevatedButton.styleFrom( shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(16), ), padding: EdgeInsets.symmetric(vertical: 16), elevation: 5, ), child: Center( child: Text(...