FLUTTER ECOSYSTEM

MohamedAbd0/stroke_text

一个简单的 Flutter 包,用于为文本组件添加描边(边框)样式

stroke_text 项目封面
Stars
1
Forks
2
最近推送(UTC)
2025年1月14日
项目状态
未归档
 Mohamed Abdo Elnashar GitHub avatar
GITHUB User

Mohamed Abdo Elnashar ↗

Senior Flutter Developer I am a software engineer with 7+ years of experience, interested in mobile applications for more than 6 years, studying for a master's

Dscale.ioDubai, UAE
语言C++CMakeDartHTMLCShellSwiftKotlinObjective-C

此仓库发布的插件

使用的依赖

依赖清单 3 项
  • flutter{"sdk":"flutter"}
  • flutter_test开发依赖{"sdk":"flutter"}
  • flutter_lints开发依赖^1.0.0

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

Stroke Text Widget

A simple flutter package to add stroke (border) style to a text widget

https://raw.githubusercontent.com/MohamedAbd0/stroke_text/HEAD/images/logo.png

Installation

  1. Add this to your package's pubspec.yaml file:
dependencies:
  stroke_text: any
  1. Get the package using your IDE's GUI or via command line with
$ pub get
  1. Import the color.dart file in your app
import 'package:stroke_text/stroke_text.dart';

Usage

default text widget

StrokeText(text: "Stroke Text",)

custom text style

StrokeText(
  text: "Stroke Text",
  textStyle: TextStyle(
    fontSize: 50
  ),
),

StrokeText(
  text: "Flutter",
  textStyle: TextStyle(
    fontSize: 50,
    color: Colors.green
  ),
  strokeColor: Colors.amber,
  strokeWidth: 5,
),

Screenshots

https://raw.githubusercontent.com/MohamedAbd0/stroke_text/HEAD/images/Simulator.png