Skip to content

JeriesAk/android-project-flutter-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dry questions

  1. SnappingSheetController is the clas that is used to implement the controller logic. It allows the programmer to drag the snapping sheet to a certain position using ".snapToPosition(factor)" method and ".setSnappingSheetPosition(pixels)". It also allows stopping the snapping using ".stopCurrentSnapping()". You can extract information about the snapping sheet from the controller such as "currentPosition", "currentSnappingPosition", "currentlySnapping", "isAttached". Ref https://pub.dev/packages/snapping_sheet#using-the-snappingsheetcontroller
  2. We can add snappingPositions parameter to the SnappingSheet, which is as array of snappingPositions. Each position can define an animation using snappingCurve and snappingDuration parameters. Ref: https://pub.dev/packages/snapping_sheet#customize-snapping-positions
  3. InkWell advantage: Provides the ripple effect on tap (splash animation), while GestureDetector does not. GestureDetector advantage: It provides support for more controls such as drag, swipe and more, which InkWell does not provide. You can use either of them according to your needs, you want ripple effects go with InkWell, need more controls go with GestureDetector or even combine both of them.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages