skip to Main Content

Flutter – Show Icon after TextForm Field

Expanded( child: Column( mainAxisAlignment: MainAxisAlignment.start, children: [ SizedBox(height: 40), Row( children: [ SizedBox(width: 8), //MENU Icon( Icons.menu, size: 34, color: AppColors.black, ), Spacer(), //LOGO SizedBox( height: 60, width: 100, child: Image.asset( 'assets/icons/logo_transparent_main.png', )), SizedBox(width: 8) ], ), //SEARCHBAR Padding( padding:…

VIEW QUESTION

Flutter – Rebuilding issue when I declare MediaQuery within the build function

import 'package:bug_fix/home_screen.dart'; import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @OverRide Widget build(BuildContext context) { return const MaterialApp( home: HomeScreen(), ); } } import 'dart:developer'; import 'package:flutter/material.dart'; class HomeScreen extends StatelessWidget { const…

VIEW QUESTION

Alignment vertically suffixIcon/prefixIcon in textformfield and textform in flutter

I have tried to change TextFormField prefix icon alignment, but flutter don't have a property for this. My code: TextFormField( keyboardType: TextInputType.multiline, style: typography.titleMedium, validator: (value) { if (value.isNullOrEmpty) { _shakeDescKey.currentState?.shake(); return ""; } bloc.onChangeDescription(value!); return null; }, decoration: InputDecoration(…

VIEW QUESTION
Back To Top
Search