Questions tagged [scaffold]

429 questions
6
votes
1 answer

In Flutter, how do you set *all* the scaffold background color at once?

Currently, I set background color of each screen using this: @override Widget build(BuildContext context) => Scaffold( backgroundColor: Colors.white, body: ... ); Every time I create new screen, I always forgot to add this background…
Chen Li Yong
  • 5,459
  • 8
  • 58
  • 124
6
votes
1 answer

Define Scaffolding. (with respect to Dynamic Data and ASP.NET MVC)

There is a lot of information about how to implement and customize scaffolding with Dynamic Data and ASP.NET MVC. What exactly is the definition of scaffolding when used in this context?
smartcaveman
  • 41,281
  • 29
  • 127
  • 212
6
votes
4 answers

Changing scaffold-controller-generator-templates in Rails

When I use the Rails scaffold generator to create my Rails-files, it creates among others a controller file. e.g. rails generate scaffold potato generates: app/controllers/potatos_controller.rb For my project I want this file a little more specific.…
Michael B
  • 1,660
  • 3
  • 28
  • 59
6
votes
2 answers

Grails scaffold 404 with byte[]

I'm trying to upload a file in grails. The generated scaffold is not working for me and giving me a 404 looking for 'save.jsp' Domain class Simple{ byte [] avatar static constraints = { avatar nullable: true, maxSize: 1000000 …
Oliver Shaw
  • 5,235
  • 4
  • 26
  • 35
5
votes
2 answers

Is it possible to scaffold multiple controllers in one command?

Using MvcScaffolding I can call these powershell commands to scaffold the Controllers and Views automagically. scaffold Controller Products scaffold Controller Reviews Is it possible to combine the two commands into one? e.g scaffold Controller…
Fixer
  • 5,985
  • 8
  • 40
  • 58
5
votes
1 answer

Adding image to scaffold top bar in jetpack compose

I'm trying to add an image from a database to my top bar but it shows up as a white filled in rectangle - the image doesn't show at all. here's the below code. the way I have the icon set up works elsewhere in my app, it's just in this top bar for…
5
votes
1 answer

Ruby on Rails: Get next item in model

Say I have simply ran rails g scaffold book name:string about:text On the 'show' view, how would I implement a button to go to the next item in the model. I can't simply do @next = @book.id + 1 because if @book.id = 2 (for example) and I clicked…
Keenan Thompson
  • 980
  • 3
  • 13
  • 31
5
votes
2 answers

Android Jetpack Compose - Floating Action Button of custom image

I write this code. Image ( painter = painterResource(id = R.drawable.image), contentDescription = "fab", modifier = Modifier .size(80.dp) .clickable( interactionSource = remember {…
vr_min_chan
  • 125
  • 1
  • 9
5
votes
3 answers

How to add multiple Children to flutter scaffold body

I am trying to write multiple child to flutter scaffold body: tag. I am new to flutter and I don't know how to do multiple children inside a body tag. his is what I have tried. return new Scaffold( appBar: AppBar( leading: new…
Jananath Banuka
  • 2,951
  • 8
  • 57
  • 105
5
votes
1 answer

Display a domain transient property in scaffolded views

In my Grails 1.3.7 project I have a domain class like this: class User { String login String password String name String passwordConfirmation static constraints = { login unique:true, blank:false, maxSize:45 password …
Carlos
  • 2,883
  • 2
  • 18
  • 19
5
votes
3 answers

Passing a value to the floating action button to be used in the bottom sheet

In this widget the tabs navigate between types if it is question it goes a specified screen. If it is forum it goes to another one. The problem is I need to pass the type of the current tap to the on pressed function in the floating action button.…
Aya Elsisy
  • 2,029
  • 4
  • 13
  • 23
5
votes
1 answer

Elevation not working on flutter material

I want to do an app that looks like this with that slice on the corner. I can make that slide but my app doesn't have that shadow. I have my front layer wraped inside a material wideget with elevation like in the example MDC-104. Here is my code…
Isaac
  • 1,436
  • 2
  • 15
  • 29
5
votes
2 answers

InheritedWidget with Scaffold as child doesn't seem to be working

I was hoping to use InheritedWidget at the root level of my Flutter application to ensure that an authenticated user's details are available to all child widgets. Essentially making the Scaffold the child of the IW like this: @override Widget…
KBDrums
  • 515
  • 1
  • 6
  • 7
5
votes
2 answers

replace tag with normal fields on custom template grails

i install templates in grails 3 and files are in src/main/templates/scaffoldind works fine but use tag I need a bootsrap twitter class on all inputs and f:all tag do not allow this function, so i need replace tag…
Abel Olguin Chavez
  • 1,350
  • 1
  • 12
  • 24
5
votes
6 answers

ASP.NET MVC 5 Model-Binding Edit View

I cannot come up with a solution to a problem that's best described verbally and with a little code. I am using VS 2013, MVC 5, and EF6 code-first; I am also using the MvcControllerWithContext scaffold, which generates a controller and views that…
Jazimov
  • 12,626
  • 9
  • 52
  • 59
1 2
3
28 29