Questions tagged [scaffold]

429 questions
2
votes
0 answers

How can I handle bottom sheet and bottom bar logic into viewmodel in kotlin compose?

I am making a scaffold and ModalBottomSheetLayout. ModalBottomSheetLayout contains scaffold and scaffold contains bottom bar and top bar but The codes are not very pleasing to the eye and I will have to copy them again during use on another screen.…
2
votes
2 answers

How to override SnackbarData in Jetpack Compose?

I need a custom parameter in the snackbar, but showSnackbar only allows passing three parameters (message, actionLabel and duration). I need to pass an Enum to decide which status to show. @Composable fun BaseScreen( viewModel: BaseViewModel?, …
2
votes
0 answers

How to learn is bottomsheet is drag to collapse or expand in jetpack compose

I want to get the state of bottomsheet drag in compose bottomsheet scaffold. How to get this drag state?
emreturka
  • 846
  • 3
  • 18
  • 44
2
votes
1 answer

scaffold doesn't work well, the NEW method fails

I've just executed this: rails g scaffold Photos name:string description:string and added paperclip to that model: rails g paperclip Photo image and when i go to photos/new i get this: undefined method `model_name' for NilClass:Class What is the…
M2_
  • 217
  • 4
  • 14
2
votes
1 answer

Flutter BottomNavigationBar stackoverflow

i'm starting with Flutter and i'm struggling with the navigationBar, if i add the body i keep getting a stackOverflow. If i don't add the body everything is fine. Error: The following StackOverflowError was thrown building…
2
votes
6 answers

ruby on rails routes

I am having a hard time understanding routes in rails 3. I created two scaffolds: Users and magazines. The users are able to login, but I am unable to link to the magazine page. I know it has to do with creating a route. If I navigate via the URL to…
user893447
  • 71
  • 1
  • 3
2
votes
0 answers

Scaffold drawer conditional rendering throwing an error

I need to display a Scaffold drawer only for the portrait mode of some specific devices. I'm using conditional rendering (the showDrawer is true when the specific devices are met) Scaffold( key: _scaffoldKey, drawer: showDrawer ? drawer :…
sasarivera
  • 21
  • 1
2
votes
1 answer

.Net 5 Scaffoling "Build failed. Use dotnet build to see the errors." But No error

I've got wierd situation, When Im trying to update db Model by using "dotnet ef dbcontext scaffold Microsoft.EntityFrameworkCore.SqlServer --force" I'm gettin an error "Build failed. Use dotnet build to see the errors." BUT when i rebuild…
2
votes
2 answers

Scaffold Status Bar Blocking Button Touch

Although I am in full screen mode where status bar is hidden but still my menu button on top right corner is not receiving touch. You can see in picture where I have selected the top bar which is receiving the touch. Half of my menu button is…
Noor Ali Butt
  • 798
  • 8
  • 24
2
votes
1 answer

How to scroll widget in same time with grid Flutter

How I can scroll widget in same time Flutter Screenshot Image Here is code for this screen return Scaffold( appBar: CustomAppBar( scaffoldKey: widget.scaffoldKey, // icon: AppIcon.settings, // onActionPressed:…
ComaXD EA1
  • 405
  • 5
  • 13
2
votes
1 answer

Best way to create a global loading screen with bloc?

I tried to create a loading screen widget on top of the widget tree stacked with its first scaffold. It works fine inside that scaffold. When I navigator.push to another scaffold and try to trigger the loading screen, it doesn't appear on the second…
EDPChinthana
  • 144
  • 1
  • 10
2
votes
2 answers

Scaffold admin CRUD in .net core SPA Angular

Is there a way to scaffold angular components + module for .net core api CRUD controllers? Or how to extend the existing scaffolding code in order to generate crud components + module for angular? Especially, I would like to generate forms and their…
2
votes
1 answer

Flutter TextField covered by keyboard, I can't use resizeToAvoidBottomInset = true

I'm trying to make a an autocomplete Textfield that decide whether to show the list of suggestions up or down respect to the textfield depending on where there is more space in the screen. Like this: AutocompleteTextFieldExample To decide in which…
2
votes
0 answers

Scaffold-DbContext different namespace on context and models

I run command for get DBContext and Models from existing database Scaffold-DbContext -Force -OutputDir "../Project.Domain/Models" -ContextDir "../Project.Data" -Connection "Server=.;Database=xxx;user id=zzz;password=yyy;" -Provider…
DJV
  • 21
  • 4
2
votes
1 answer

Grails newbie - Scaffold question - Replace unique id with readable value(s)?

I'm creating a web application with grails, and I'm working on the CRUD prototype using Scaffold. Out of the box, the scaffold will use the unique id (which makes sense) for foreign key values, and I'm wondering if I can easily replace the unique id…
loeschg
  • 29,961
  • 26
  • 97
  • 150