LoginSignup
3
0

こんにちは!
すっかり冬ですね〜
今回は、containerの枠線を点線にする方法について
ご紹介します!

使い方

まず、パッケージを追加します。

dart
dependencies:
  dotted_border: ^2.0.0+1

次に、使用するページでインポートします。

dart
import 'package:dotted_border/dotted_border.dart';

使いたい場所で以下の記述をします。

dart
DottedBorder(
  child: Container(
    width: 300,
    height: 100,
  ),
),

使用例

スクリーンショット 2023-12-06 19.11.34.png

最後に

ここまで読んでくださり、ありがとうございました!
いいねくれるとスキップして喜びます:blush:

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0