skip to Main Content

Flutter – TextFormField error message not displayed correctly when typing

I have a CustomTextFormField which is a wrapper over a TextFormField as below: import 'package:flutter/material.dart'; class CustomTextFormField extends StatelessWidget { final TextEditingController controller; final String hintText; final String label; final bool obscureText; final FormFieldValidator<String>? validator; final ValueChanged<String>? onChanged; const CustomTextFormField({…

VIEW QUESTION

Flutter – How to hide part of SliverAppBar when it is behind a widget?

import 'package:flutter/material.dart'; class HomePage extends StatefulWidget { const HomePage({super.key}); @override State<HomePage> createState() => _HomePageState(); } class _HomePageState extends State<HomePage> { var opacity = 0.0; @override Widget build(BuildContext context) { return Scaffold( backgroundColor: Colors.purple.shade100, body: SafeArea( child: Stack( children: [ NotificationListener<ScrollUpdateNotification>(…

VIEW QUESTION
Back To Top
Search