FLUTTER ECOSYSTEM

tewshi/bordered-text

Adds Stroke to a Flutter Text widget

bordered-text project cover
Stars
22
Forks
10
Last push (UTC)
Jun 29, 2026
Project status
Active
Joseph Ojoko GitHub avatar
GITHUB User

Joseph Ojoko ↗

Software Engineer

Berlin, GermanyOfficial website ↗
LanguagesC++CMakeDartSwiftCHTMLKotlinObjective-C

Packages published by this repository

Dependencies used

Dependency list 3 items
  • flutter{"sdk":"flutter"}
  • flutter_testDevelopment{"sdk":"flutter"}
  • flutter_lintsDevelopment^6.0.0

Original README

English project snapshot. Visit GitHub for the latest content.

Expand / collapse project 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,
              ),
            ),
          ),
        ),
      ),
    );
  }
}