Questions tagged [scaffold]

429 questions
1
vote
1 answer

No ScaffoldMessenger widget found. TabBarDemo widgets require a ScaffoldMessenger widget ancestor

i have this code: @override Widget build(BuildContext context) { return MaterialApp( home: DefaultTabController( length: 3, child: Scaffold( drawer: SideBar(), appBar:…
Osama Mohammed
  • 2,433
  • 13
  • 29
  • 61
1
vote
1 answer

In scaffold ,error has been showed like " No value passed for parameter 'content' "- I have attached snap below

I have already developed topBar and bottom bar separately.In ActivityScreen function line number 17,error has been occured.
user20108370
1
vote
1 answer

Rails 3.1 Scaffold undefined method `model_name' for nil:NilClass

Help me StackOveflow, you're my only hope. I'm getting the following error, and its driving me crazy. NoMethodError in Players#new Showing /home/paul/rails_projects/recruits/app/views/players/_form.html.haml where line #1 raised: undefined method…
Paul Pettengill
  • 4,843
  • 1
  • 29
  • 33
1
vote
1 answer

Navigation in Scaffold

I have a app using Jetpack Compose. I have two screens: 1. NewsScreen 2. SettingsScreen The default is NewsScreen. I have a NavHost called AppNavigation.kt: @Composable fun AppNavigation() { val navController = rememberNavController() val…
Palantiir
  • 55
  • 5
1
vote
0 answers

Can I scaffold with EF Core and get SQL Server Date as DateOnly and not as Datetime?

I am having this problem while running scaffold-dbcontext, it is representing SQL Server date columns as datetime. Is there any solution?
jonrexh
  • 49
  • 4
1
vote
1 answer

How can i run scaffold command from c#

How can i run the following command from the code i have tried the following but not worked System.Diagnostics.Process.Start("CMD.exe", @"dotnet ef dbcontext scaffold ""server=xxx.xxx.x.xxx;user=xxxxx;database=dbname;port=3306;Password=xxxxx;Allow…
khaled saleh
  • 470
  • 7
  • 18
1
vote
2 answers

How to pass context of Scaffold to some function in flutter?

I want to show Snackbar using the floating action button but I am not able to pass the context of scaffold as parameter to call the local function in onPressed argument. Is there any way to show the scaffold using floating action button? void main()…
1
vote
0 answers

received this error when running the flutter code : Error: No named parameter with the name 'body'

I hope you are doing great. I am trying to centralize an image at the level of the body using flutter but I instead receive this error: Error: No named parameter with the name 'body'. body: Center( .please what can I do to solve the issue? it is…
1
vote
0 answers

Stateful Drawer Content in Scaffold Jetpack Compose

Can I change the content of drawer in a scaffold? I have a drawer and I have a text in its header to change. For example whenever a user logs in, I want the text in this drawer's header to change. But the drawer content is not recomposing just the…
Nur Horany
  • 11
  • 1
1
vote
1 answer

Flutter AppBar actions iconButton overflowed

My AppBar action IconButton is overflowed. The likesCount parameter changes over time. How to prevent overflow dynamically, using IconButton in AppBar actions? My code: appBar: AppBar( actions: [ IconButton( onPressed:…
genericUser
  • 4,417
  • 1
  • 28
  • 73
1
vote
2 answers

Can I show snackbar in a widget which directly has no scaffold but has in a parent widget?

I want to use snack bar in a widget but the scaffold is in a different widget. I have used ScaffoldMessenger but not showing and no errors.[ScaffoldMessenger used in a widget that is two widget inside of parent widget which has a scaffold]
Abu Kalam
  • 21
  • 1
1
vote
0 answers

How to have one Scaffold with one BottomNavigationBar and multiple MaterialApp.routes

By looking at the Material Design document about Bottom Navigation I can see multiple pages with nice transitions that use only one BottomNavigationBar, and probably one Scaffold. I would like to replicate this but I struggle to do so, and previous…
1
vote
3 answers

Can't make a big size container after increasing height

This is my code where I have increased my height of this container to make big circle in mobile emulator but couldn't make it. I don't know the reason behind these. import 'package:flutter/material.dart'; void main () { runApp(const…
Learning Curious
  • 101
  • 1
  • 1
  • 5
1
vote
1 answer

Can I Scaffold bottomNavigationBar wrap ListView?

I'm thinking about — if I need more menu elements in bottom — can I wrap my Scaffold bottomNavigationBar to ListView and horizontal scroll it? // below code is wrong, but it shows my idea clearly (I suppose :) ) // piece of…
clear man
  • 15
  • 3
1
vote
2 answers

Custom Scaffold class not draw the AppBar

I'm trying to create a custom Scaffold extending the original class. With a default AppBar if not passed a new one. class CommonScaffold extends Scaffold { final AppBar? appBar; final Widget body; CommonScaffold({ Key? key, …
Samuele
  • 129
  • 11