MohamedAbd0 / stroke_text

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

Home Page:https://pub.dev/packages/stroke_text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stroke Text Widget

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

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

About

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

https://pub.dev/packages/stroke_text

License:MIT License


Languages

Language:C++ 50.0%Language:CMake 24.4%Language:HTML 11.7%Language:Dart 10.0%Language:C 2.2%Language:Swift 1.2%Language:Kotlin 0.4%Language:Objective-C 0.1%