QueryFieldTheme.material constructor

QueryFieldTheme.material(
  1. ThemeData material
)

Implementation

factory QueryFieldTheme.material(ThemeData material) {
  var isLightMode = material.brightness == Brightness.light;
  return QueryFieldTheme(
      borderRadius: BorderRadius.circular(20.0),
      borderColor: material.dividerColor,
      backgroundColor:
          (isLightMode) ? material.canvasColor : Color(0xff35363a),
      shadowColor: material.shadowColor.withOpacity(0.1),
      shadowBlurRadius: 2.0,
      shadowOffset: Offset(0.0, 0.5));
}