Open vickygidvir opened 11 months ago
Hi @vickygidvir Please update the issue with flutter doctor and minimal example code. By other way, try to do the same with a TextField native Flutter
Hello @deandreamatias
I have updated the issue with flutter doctor and minimal example code.
Below is the screenshot of same with a Textfield native flutter and it work totally fine.
Hello @deandreamatias is there any update regarding this issue?
@vickygidvir I don't have a lot time to solve the issue and I have a lot to solve... When I can, I will try solve
Same issue here. In debug everything is working fine. Only on web release it is appearing. This issue appeared when we the flutter and FormBuilder versions. Before the same code was working fine. In my case I was using FormBuilderField, that I modified to create a multi selection field.
Is there an existing issue for this?
Package/Plugin version
9.1.0
Platforms
Flutter doctor
Minimal code example
Code sample
```dart import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; class CustomTextField extends StatelessWidget { final TextEditingController controller; final bool isEnabled; CustomTextField({ required this.controller, this.isEnabled = true, }); @override Widget build(BuildContext context) { return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( 'Project ID', style: TextStyle( color: Colors.black, // You can replace this with your color logic ), ), SizedBox( height: 5, ), SizedBox( height: 40, width: 200, child: InkWell( hoverColor: Colors.transparent, onTap: () {}, onHover: (_) {}, child: TextFormField( onChanged: (value) {}, enabled: isEnabled, controller: controller, decoration: InputDecoration( hintText: 'Enter Project Id', filled: true, isDense: true, contentPadding: const EdgeInsets.all(10), fillColor: Colors.white, // You can replace this with your color logic hintStyle: TextStyle( color: Colors.black, // You can replace this with your color logic fontSize: 14, ), enabledBorder: OutlineInputBorder( borderSide: BorderSide( color: Colors.grey, // You can replace this with your color logic width: 1, ), ), focusedBorder: OutlineInputBorder( borderSide: BorderSide( color: Colors.grey, // You can replace this with your color logic width: 1, ), ), disabledBorder: OutlineInputBorder( borderSide: BorderSide( color: Colors.grey, // You can replace this with your color logic width: 1, ), ), ), style: TextStyle( color: Colors.black, // You can replace this with your color logic fontSize: 14, ), inputFormatters: [ FilteringTextInputFormatter.digitsOnly, ], ), ), ), ], ); } } void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( body: Center( child: Positioned( top: 50, left: 0, // Replace this with your getElementX logic child: CustomTextField( controller: TextEditingController(), isEnabled: true, // Replace this with your iselement_23Enabled logic ), ), ), ), ); } } ```Current Behavior
The text field appears greyed out, making it look disabled.
also i get errors in console like other
main.dart.js:33883 Another exception was thrown: Instance of 'minified:j4'
Uncaught TypeError: null: type 'minified:EO' is not a subtype of type 'List'
at Object.h (main.dart.js:4904:19)
at Object.b5K (main.dart.js:5608:18)
at kw.blk [as a] (main.dart.js:5603:3)
at main.dart.js:116202:12
at aTi.a (main.dart.js:6259:62)
at aTi.$2 (main.dart.js:48029:14)
at aSk.$1 (main.dart.js:48023:21)
at aKj.aFK (main.dart.js:48877:34)
at aKj.Py (main.dart.js:48879:21)
at aFz.$0 (main.dart.js:48410:11)
Expected Behavior
The textfield should be displayed with normal, non-greyed-out text with No errors in console.
Steps To Reproduce
flutter_form_builder
package into your Flutter project.FormBuilderTextField
widget with aFormBuilder
.Aditional information
Look some textfield below are been greyed-out (Planned Finish Date, Planned Start Date)