NeoPOP is CRED's inbuilt library for using NeoPOP components in your app.
What really is NeoPOP?
NeoPOP was created with one simple goal; to create the next generation of a beautiful, affirmative design system. NeoPOP stays true to everything that design at CRED stands for.
By specifying the buttonPosition as Position.center, NeoPOP will compute right and bottom surface's color according to color.
Top and left surface's color is computed w.r.t parentColor and grandparentColor
The decoration to paint the button. The color and decoration arguments cannot both be supplied, since it would potentially result in the decoration drawing over the background color. To supply a decoration with a color, use decoration.
buttonDepth
double?
The depth of the tilted button. default: 8.0
onTapUp
VoidCallback?
A callback triggered when a pointer that will trigger a tap with button has stopped contacting the screen
onTapDown
VoidCallback?
A callback triggered when a pointer that might cause a tap with button has contacted the screen
shadowDistance
double?
The maximum distance from the button at which the shadow is painted. default: 20
yPosFactor
double?
Factor that defines the floating positions of buttons and shadow along vertical-axis. default: 5
isFloating
bool
Whether the button is floating. default: false
floatingDuration
Duration?
The duration of the floating animation. One floating cycle i.e to-and-fro movement of the button and shadow accounts for two floating durations. default: Duration(milliseconds: 1500)
floatingDelay
Duration?
The delay between two floating cycles. default: Duration(milliseconds: 750)
tapDuration
Duration?
The duration of the animation when button is pressed or released. default: Duration(milliseconds: 100)
enabled
bool
Whether the button is enabled. default: true
Contributing
Pull requests are welcome! We'd love help improving this library. Feel free to browse through open issues to look for things that need work. If you have a feature request or bug, please open a new issue so we can track it.
License
Copyright2022DreamplugTechnologiesPrivateLimited.
Licensed under the ApacheLicense, Version2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 Unlessrequired by applicable law or agreed to in writing, software
distributed under the Licenseis distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the Licensefor the specific language governing permissions and
limitations under the License.