thngs with name Advanced* where identifiers.ser^673
products named Robot*
thngs tagged "offline"
products where customFields.weight > 42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var HIDE_CLASS = 'ui-hidden'; | |
var DISABLED_CLASS = 'ui-disabled'; | |
var FOCUSABLE_GRABBER = ':tabbable:visible:first'; | |
ui.component = ui.define({ | |
id: null, | |
cls: null, | |
locator: null, | |
hidden: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(NeumorphicApp()); | |
class NeumorphicApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Neumorphic App', | |
theme: ThemeData( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Before | |
child: Container( | |
//... | |
// After | |
// ... | |
child: AnimatedContainer( | |
duration: const Duration(milliseconds: 150), | |
// ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In _NeumorphicContainerState.build > Listener > Container > BoxDecoration | |
// ... | |
colors: [ | |
_isPressed ? color : color.mix(Colors.black, .1), | |
_isPressed ? color.mix(Colors.black, .05) : color, | |
_isPressed ? color.mix(Colors.black, .05) : color, | |
color.mix(Colors.white, _isPressed ? .2 : .5), | |
], | |
// ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In _NeumorphicContainerState.build > Listener > Container > BoxDecoration | |
// ... | |
color: color.mix(Colors.black, .05), | |
// ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In _NeumorphicContainerState.build > Listener > Container > BoxDecoration | |
boxShadow: _isPressed ? null : [...] | |
// ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Converting NeumorphicContainer to a StatefulWidget | |
class NeumorphicContainer extends StatefulWidget { | |
final Widget child; | |
final double bevel; | |
final Offset blurOffset; | |
final Color color; | |
NeumorphicContainer({ | |
Key key, | |
this.child, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gradient: LinearGradient( | |
begin: Alignment.topLeft, | |
end: Alignment.bottomRight, | |
colors: [ | |
color.mix(Colors.black, .1), | |
color, | |
color, | |
color.mix(Colors.white, .5), | |
], | |
stops: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
padding: const EdgeInsets.all(24.0), | |
// ... |