skip to Main Content

Flutter right overflow by 220 pixel

I have this error Flutter right overflow by 220 Pixel and Right Overflow error is showing. My code : import 'package:flutter/material.dart'; class Category extends StatelessWidget { const Category({super.key}); Widget CategoryCard(String imgUrl, String CategoryName) { return GestureDetector( onTap: () {}, child:…

VIEW QUESTION

text height in listview not wrap the content – Flutter

How can I make the text widget's height increase base on its content? void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( title: 'ตลาดหลักทรัพย์', theme: ThemeData(primarySwatch: Colors.indigo), home: const…

VIEW QUESTION

'String' is not a subtype of type 'YoutubePlayerController' – Flutter

Expanded( child: Container( child: SingleChildScrollView(scrollDirection: Axis.vertical, child: StreamBuilder( stream: FirebaseFirestore.instance.collection("videoList").snapshots(), builder: (context,AsyncSnapshot<QuerySnapshot>streamSnapshot){ if(streamSnapshot.hasData){ return ListView.separated( shrinkWrap: true, physics: ScrollPhysics(), scrollDirection: Axis.vertical, clipBehavior: Clip.hardEdge, itemBuilder: (context, index) { DocumentSnapshot _documentSnapshot=streamSnapshot.data!.docs[index]; return ListTile( title: YoutubePlayer( key: ObjectKey(_documentSnapshot["url"]), controller: _documentSnapshot["url"], actionsPadding: const EdgeInsets.only(left:…

VIEW QUESTION
Back To Top
Search