skip to Main Content

How to give border color on click to card in Flutter?

ListView( scrollDirection: Axis.horizontal, children: [ GestureDetector( onTap: () { setState(() { selectedCard = index; }); }, child: Card( elevation: 5, shape: RoundedRectangleBorder( side: BorderSide( color: selectedCard == index ? Colors.red : Colors.transparent, width: 2.0, ), borderRadius: BorderRadius.circular(8.0), ), child: Padding(…

VIEW QUESTION

Problem to run the application; showing some error message. Flutter

Flutter Fix ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ The plugin google_maps_flutter_android requires a higher Android SDK version. │ │ Fix this issue by adding the following to the file D:DevelopmentULTIMAT POSApp POS BackupUltimatePOS_Flutter_1.7.1posandroidappbuild.gradle: │ │ android { │ │ defaultConfig { │ │ minSdkVersion…

VIEW QUESTION

TextEditingController not working with GetX – Flutter

What I am doing wrong? import 'package:get/get.dart'; import 'package:flutter/foundation.dart'; class TextControllers extends GetxController { Rx<TextEditingController> userInputController = TextEditingController().obs; } Error: Type 'TextEditingController' not found. Rx<TextEditingController> userInputController = TextEditingController().obs; I am using: dependencies: get: ^4.6.5

VIEW QUESTION
Back To Top
Search