aloisdeniel / aloisdeniel/figma_squircle

SmoothRectangleBorder doesnt complete with the BoderSide of another SmoothRectangleBorder

未關閉
#2 1 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Dart
星號
163
分支
41
PR 合併指標
30 天內沒有已合併 PR

描述

Minimal Code Example:
```dart
import 'package:figma_squircle/figma_squircle.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

class ASection extends StatelessWidget {
const ASection({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Container(
decoration: ShapeDecoration(
color: Colors.blue,
shape: SmoothRectangleBorder(
borderRadius: SmoothBorderRadius.only(
topLeft: SmoothRadius(
cornerRadius: 10,
cornerSmoothing: 0.5,
),
topRight: SmoothRadius(
cornerRadius: 10,
cornerSmoothing: 0.5,
),
),
),
),
height: 48,
),
Container(
decoration: ShapeDecoration(
color: Colors.white,
shape: SmoothRectangleBorder(
side: BorderSide(
color: Colors.green,
),
borderRadius: SmoothBorderRadius.only(
bottomLeft: SmoothRadius(
cornerRadius: 10,
cornerSmoothing: 0.5,
),
bottomRight: SmoothRadius(
cornerRadius: 10,
cornerSmoothing: 0.5,
),
),
),
),
height: 48,
)
],
);
}
}

```

Bildschirmfoto 2021-11-05 um 16 04 55

If you are using BoxDecorations this does not happen. I think its because SmoothRectangleBorder extends OutlinedBorder

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。