simplified border radius calls
This commit is contained in:
parent
fe40408c07
commit
2a7bc663d6
7 changed files with 8 additions and 22 deletions
|
@ -35,9 +35,7 @@ class AvesDialog extends AlertDialog {
|
||||||
actions: actions,
|
actions: actions,
|
||||||
actionsPadding: EdgeInsets.symmetric(horizontal: 8),
|
actionsPadding: EdgeInsets.symmetric(horizontal: 8),
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.circular(24),
|
||||||
Radius.circular(24),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ class BlurredRRect extends StatelessWidget {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return ClipRRect(
|
return ClipRRect(
|
||||||
borderRadius: BorderRadius.all(Radius.circular(borderRadius)),
|
borderRadius: BorderRadius.circular(borderRadius),
|
||||||
child: BackdropFilter(
|
child: BackdropFilter(
|
||||||
filter: ImageFilter.blur(sigmaX: 4, sigmaY: 4),
|
filter: ImageFilter.blur(sigmaX: 4, sigmaY: 4),
|
||||||
child: child,
|
child: child,
|
||||||
|
|
|
@ -137,9 +137,7 @@ class OverlayIcon extends StatelessWidget {
|
||||||
padding: text != null ? EdgeInsets.only(right: size / 4) : null,
|
padding: text != null ? EdgeInsets.only(right: size / 4) : null,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Color(0xBB000000),
|
color: Color(0xBB000000),
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.circular(size),
|
||||||
Radius.circular(size),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
child: text == null
|
child: text == null
|
||||||
? iconChild
|
? iconChild
|
||||||
|
|
|
@ -12,9 +12,7 @@ ScrollThumbBuilder avesScrollThumbBuilder({
|
||||||
final scrollThumb = Container(
|
final scrollThumb = Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Colors.black26,
|
color: Colors.black26,
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.circular(12.0),
|
||||||
Radius.circular(12.0),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
height: height,
|
height: height,
|
||||||
margin: EdgeInsets.only(right: .5),
|
margin: EdgeInsets.only(right: .5),
|
||||||
|
@ -24,9 +22,7 @@ ScrollThumbBuilder avesScrollThumbBuilder({
|
||||||
width: 20.0,
|
width: 20.0,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: backgroundColor,
|
color: backgroundColor,
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.circular(12.0),
|
||||||
Radius.circular(12.0),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
clipper: ArrowClipper(),
|
clipper: ArrowClipper(),
|
||||||
|
|
|
@ -48,9 +48,7 @@ class EntryGoogleMapState extends State<EntryGoogleMap> with AutomaticKeepAliveC
|
||||||
// and triggering by mistake a move to the image page above
|
// and triggering by mistake a move to the image page above
|
||||||
},
|
},
|
||||||
child: ClipRRect(
|
child: ClipRRect(
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.circular(16),
|
||||||
Radius.circular(16),
|
|
||||||
),
|
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Colors.white70,
|
color: Colors.white70,
|
||||||
height: 200,
|
height: 200,
|
||||||
|
|
|
@ -54,9 +54,7 @@ class EntryLeafletMapState extends State<EntryLeafletMap> with AutomaticKeepAliv
|
||||||
// and triggering by mistake a move to the image page above
|
// and triggering by mistake a move to the image page above
|
||||||
},
|
},
|
||||||
child: ClipRRect(
|
child: ClipRRect(
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.circular(16),
|
||||||
Radius.circular(16),
|
|
||||||
),
|
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Colors.white70,
|
color: Colors.white70,
|
||||||
height: 200,
|
height: 200,
|
||||||
|
|
|
@ -182,9 +182,7 @@ class VideoControlOverlayState extends State<VideoControlOverlay> with SingleTic
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: FullscreenOverlay.backgroundColor,
|
color: FullscreenOverlay.backgroundColor,
|
||||||
border: FullscreenOverlay.buildBorder(context),
|
border: FullscreenOverlay.buildBorder(context),
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.circular(progressBarBorderRadius),
|
||||||
Radius.circular(progressBarBorderRadius),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
key: _progressBarKey,
|
key: _progressBarKey,
|
||||||
|
|
Loading…
Reference in a new issue