Issue This is my whole code: import ‘package:flutter/material.dart’; import ‘package:testproject/components/event_tile.dart’; import ‘package:testproject/components/mybutton.dart’; class MenuPage extends StatelessWidget { const MenuPage({super.key}); @override Widget build(BuildContext context) { List EventList = [ EventTile( name: "Mitama Matsuri festivial", price: "€ 49", imagePath: "lib/images/japan7.png", rating: "5",
Continue readingTag: singlechildscrollview
flutter – when wrapped my Column widget with SingleChildScrollView, it does not fill full height
Issue After wrapping my Column widget with SingleChildScrollView widget, my screen got cut like this: I could not find fill max height or something as a parameter for the SingleChildScrolledView. The reason for adding the SingleChild is because when I
Continue readingHow can I see last widget in Column which is wrapped in SingleChildScrollView even when keyboard is open in flutter?
Issue Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ const Text( ‘Discount (%) :’, style: TextStyle(fontSize: 14), ), Container( width: 40, height: 30, decoration: BoxDecoration( color: Colors.grey.shade200, border: const Border.fromBorderSide(BorderSide.none), borderRadius: BorderRadius.circular(10)), child: Center( child: TextField( onChanged: (text) { getDiscountedAmount(text); }, cursorHeight: 18,
Continue readingFlutter singlechildscrollview fixed TextField
Issue How Can I keep the text field fixed? Currently when I am scrolling to top its also going with the list. I need to keep it fixed. Widget build(BuildContext context) { final localStorage = GetStorage(); return Scaffold( appBar: HomePageAppBar(),
Continue readingflutter Error the screen overflows horizontally
Issue I want to scroll the overflowing screen horizontally. I used SingleChildScrollView, but the widget was not visible. I’ve tried both listview and SingleChildScrollView, but I keep getting a notification that the size of the horizontal axis is the problem.
Continue readingFlutter space evenly scrollable layout
Issue I have following design: Code: body: Container( color: Colors.green, child: SingleChildScrollView( child: const Column( crossAxisAlignment: CrossAxisAlignment.stretch, children: [ // TEXT // TEXT // IMAGE ], ), ), ) It is fine, when the device is smaller, the column is
Continue readingIn Flutter how to make SingleChildScrollView scroll horizontally as well as vertically with fixed height
Issue I am creating an App that will have multiple tables on the same page. I want these tables to have a MaxHeight of say 200 and the table should be able to scroll both-ways, i,e. horizontally as well as
Continue readingSingleChildScrollView does not scroll down, even though there are items beneath what is shown
Issue This is the full code. import ‘dart:async’; import ‘dart:convert’; import ‘package:flutter/foundation.dart’; import ‘package:flutter/material.dart’; import ‘package:http/http.dart’ as http; Future<List<Event>> fetchEvents(http.Client client) async { final response = await http.get(Uri.parse(‘https://my-json-server.typicode.com/Evgen1987RUS/test-json/events/’)); // TODO: тестовый джей сон поменять на нормальный return compute(parseEvents, response.body); }
Continue readingWhat is the difference between ListView and SingleChildScrollView+ListBody in Flutter?
Issue I have a question about comparing ListView and SingleChildScrollView containing a ListBody. Seemingly, those two results look the same. But I’m curious about whether those two have a difference in function. In my opinion, it could be the part
Continue readingAdding singlechildscrollview hiding all widgets
Issue If I add a SingleChildScrollView in this Flutter screen, all my widgets disappear. I get a blank white screen. This is my code without scroll: class _HomePageState extends State<HomePage> { @override Widget build(BuildContext context) { return Scaffold( body: Padding(
Continue reading