Skip to content

Instantly share code, notes, and snippets.

@mmanflori
Created January 27, 2019 09:00
Show Gist options
  • Save mmanflori/d4f8ed294e5ed288ffe5e8e56bf63b20 to your computer and use it in GitHub Desktop.
Save mmanflori/d4f8ed294e5ed288ffe5e8e56bf63b20 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
boxDeco(double aA,double bB){
dynamic boxDeco = new BoxDecoration(
border: new Border.all(
color:Colors.black,
width: 2.0,
style: BorderStyle.solid,
),
color: Colors.blue,
borderRadius: BorderRadius.all(
new Radius.circular(
10.0
)
),
boxShadow: [new BoxShadow(
color: Colors.grey,
offset: new Offset(aA, bB),
blurRadius: 5.0,
)],
);
return boxDeco;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment