skip to Main Content

Flutter – Why my output have no Image and heading in all red with double yellow underline along with black background?

import 'package:flutter/material.dart'; class SiginupPage extends StatefulWidget { const SiginupPage({super.key}); @override State<SiginupPage> createState() => _SiginupPageState(); } class _SiginupPageState extends State<SiginupPage> { @override Widget build(BuildContext context) { return SafeArea(child: Container( width: double.infinity, height: MediaQuery.of(context).size.height, padding: const EdgeInsets.symmetric(horizontal: 30,vertical: 30), child: Column( mainAxisAlignment:…

VIEW QUESTION

Flutter – Changing the state

I have a function checkAvailability that changes the state of variable isTaken to true if the condition matches . checkAvailabiltiy(String text){ for(var snapshot in allData){ var name = snapshot['username'].toString().toLowerCase(); if(text.toLowerCase() == name){ setState(() { isTaken =true; }); } else{ }…

VIEW QUESTION
Back To Top
Search