FLUTTER ECOSYSTEM

tewshi/bordered-text

為 Flutter Text 小部件添加描邊

帶邊框的文本 專案封面
Stars
22
Forks
10
最近推送(UTC)
2026年6月29日
專案狀態
未封存
Joseph Ojoko GitHub avatar
GITHUB User

Joseph Ojoko ↗

Software Engineer

Berlin, Germany官方網站 ↗
語言C++CMakeDartSwiftCHTMLKotlinObjective-C

此儲存庫發佈的套件

使用的依賴

依賴清單 3 項
  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}
  • flutter_lints開發依賴^6.0.0

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

BorderedText

Build Status

pub package

Adds Stroke to a Flutter Text widget

https://github.com/tewshi/bordered-text/blob/master/screenshots/sample2.png?raw=true

https://github.com/tewshi/bordered-text/blob/master/screenshots/sample.png?raw=true

Getting Started

Check the installation guide for how to install this plugin

Usage

We can apply a very thin and subtle stroke to a [Text]
import 'package:bordered_text/bordered_text.dart';

class StrokeTester extends StatelessWidget {

  const StrokeTester({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Bordered Text test',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Bordered Text'),
        ),
        body: Center(
          child: BorderedText(
            strokeWidth: 1.0,
            child: Text(
              'Bordered Text Widget',
              style: TextStyle(
                decoration: TextDecoration.none,
                decorationColor: Colors.red,
              ),
            ),
          ),
        ),
      ),
    );
  }
}