skip to Main Content

Flutter add TextField under Appbar

I want to add textfield in bottom appbar. I used bottom and PreferredSize in my appbar, but the textfield still not showing this is the image enter image description here and this is all code import 'package:flutter/material.dart'; import '../../utils/utils.dart'; class…

VIEW QUESTION

Authetication using Go Routers with flutter

class AuthGate extends StatelessWidget { const AuthGate({super.key}); @override Widget build(BuildContext context) { final AuthService authService = AuthService(); final userProvider = context.read<UserProvider>(); WidgetsBinding.instance.addPostFrameCallback((_) async { await authService.getUserData(context: context); if (userProvider.userModel.token.isNotEmpty) { context.go(AppRouterName.homeView.path); } else { context.go(AppRouterName.signInView.path); } }); return const Scaffold(…

VIEW QUESTION
Back To Top
Search