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,
              ),
            ),
          ),
        ),
      ),
    );
  }
}