skip to Main Content

Flutter – Move widget to right in Stack

How to move the image to the right? Stack( alignment: Alignment.centerRight, children: [ Container( decoration: BoxDecoration( borderRadius: BorderRadius.circular(15), gradient: LinearGradient( begin: Alignment.topLeft, end: Alignment.topRight, colors: [ Colors.red, Colors.green.shade200, ], ), ), width: MediaQuery.of(context).size.width, height: 80, ), Positioned( right: 0, left:…

VIEW QUESTION

how to add a arrow shape in flutter screen

I have a list view with 9 items , and each item has a same dark blue picture in their left ListView.builder( itemCount: 9, itemBuilder: (BuildContext context, int index) { return Padding( padding: const EdgeInsets.symmetric(horizontal: 8.0, vertical: 8.0), child: Row(…

VIEW QUESTION

Flutter – how can I stop hintText misalignment?

I have a customtextfield widget.When I give a suffix as an argument.I see misalignment in hinttext.Here it is code block you can look at. import 'package:flutter/material.dart'; class CustomTextField extends StatelessWidget { final String? hintText; final TextEditingController controller; final Widget? suffixWidget;…

VIEW QUESTION

Flutter – How to get a list of documents from Cloud Firestore using dart cloud_firestore package

I made a function to read a the data from a specific document and it works(code below) Future<List<String>> getAllServicesFromDatabase()async{ List<String> services = []; FirebaseFirestore db = FirebaseFirestore.instance; DocumentSnapshot<Map<String, dynamic>> results = await db.collection(dbCollection).doc(servicesDocument).get(); if(results.data() != null){ Map<String,dynamic> fetchedData = results.data()!;…

VIEW QUESTION
Back To Top
Search