Issue I am getting some strange issue where one of TextField always gets clears if you tap on it. class MyEditText extends StatefulWidget { static String tag = “MyEditText”; @override MyEditTextState createState() => MyEditTextState(); } class MyEditTextState extends State<MyEditText> {
Continue readingTag: flutter-layout
No Scaffold widget found : Getting exception while opening Bottom Dialog sheet
Issue I’m using Scaffold widget but while opening a bottom dialog sheet I’m getting this exception @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text(“Calendar”), ), body: SafeArea( ……. ……. child: GestureDetector( onTap: (){ //getting exception here showBottomSheet(
Continue readinghow to add TextEditingController and obtain text value from dynamic TextFormField in Flutter?
Issue i want to obtain text value from these dynamic TextFormField class MyPets extends StatefulWidget { @override _MyPetsState createState() => _MyPetsState(); } class _MyPetsState extends State<MyPets> { List<Widget> _children = []; int _count = 0; @override Widget build(BuildContext context) {
Continue readingHow can I justify text with Flutter markdown?
Issue I started using flutter markdown, however I’d like to justify the content, and I couldn’t until now. I tried using a Center and Alignment but didn’t work. import ‘package:flutter/material.dart’; import ‘package:flutter_markdown/flutter_markdown.dart’; class OutsideBankHourDescription extends StatelessWidget { @override Widget build(BuildContext
Continue readingHow to know when user delete the input in VerificationCodeInput Flutter
Issue I want to make a verification code input in my app. I’m using this widget to do that. But I don’t know how to detect if the user delete the number that he/she inputted after he fully input in
Continue reading[flutter]Why my column alignment is always center?
Issue I declared two columns in a row to layout the text and the icon. The column for the icon is always center even if I set the mainAxisAlignment with MainAxisAlignment.start. Here is the code for the card: import ‘package:flutter/material.dart’;
Continue readingText will not overflow in row
Issue I have text in a row that is overflowing and it will not clip properly. Below is a simple hierarchy of my Widget with notes. ListView ListItem1 … ListItemN Padding Row // mainAxisAlignment.spaceBetween Row IconWidget Container Padding Image //
Continue readingHow can I make TextField's suffix/suffixIcon height resize?
Issue import ‘package:flutter/material.dart’; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: SafeArea( child: Scaffold( body: Column( children: [ Container( color: Colors.orange, child: TextField( decoration: InputDecoration( suffix: IconButton( icon: Icon(Icons.check_circle), onPressed: ()
Continue readingIs there are way to add two different color Iphone x SafeArea on Flutter
Issue I would like to know is there any way to add two different colors to iPhone X SafeArea? On React Native this can be fixed by adding two SafeAreaView. Does anyone know how to fix this one on flutter?
Continue readingAdding Border to Icons flutter
Issue I want to add border to the icons in flutter like in the image below. How can I achieve that? Solution I tried something creative Stack( children: [ _buildIcon(48, Colors.blue), _buildIcon(44, Colors.white), ], ), Widget _buildIcon(double size, Color color)
Continue reading