simple_rich_text 1.0.24 copy "simple_rich_text: ^1.0.24" to clipboard
simple_rich_text: ^1.0.24 copied to clipboard

outdated

Display a Dart string in Flutter using simple rich text characters.

example/lib/main.dart

import 'package:simple_rich_text/simple_rich_text.dart';
import 'package:flutter/material.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(new MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
//    String text = null;
//    String text = 'no format characters';
//    String text = r'format characters: \*\/\_';
//    String text = '_entire string_';
//    String text = '*/_fully loaded!_*/';
//    String text = 'first *bold*.';
//    String text = r'test*\_quoted\_*.';
//    String text = r'don't*close';
//    String text = r'_start at beginning and do not close';
//    String text = r'/Deanna/ is /awesome/!';
//    String text = r'_back__to back_';
//    String text = r'go to _{route}home_ page';
    String text =
        r'*_/this is all three*_/ (*bold*, _underlined_, and /italicized/). _{home}Click to navigate to home screen_';
    return new MaterialApp(
      home: Scaffold(
          backgroundColor: Colors.grey,
          // , chars: r"[*]"
          body: Center(child: SimpleRichText(text: text))),
    );
  }
}
86
likes
0
points
3.98k
downloads

Publisher

verified publisheronlyup.com

Weekly Downloads

Display a Dart string in Flutter using simple rich text characters.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, meta

More

Packages that depend on simple_rich_text