text_plus 0.4.0
text_plus: ^0.4.0 copied to clipboard
This pakcage is a wrapper for the Text widget that allows you to use the same widget with different styles in the same text.
import 'package:flutter/material.dart';
import 'package:text_plus/text_plus.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: TextPlusExample(),
);
}
}
class TextPlusExample extends StatelessWidget {
const TextPlusExample({super.key});
@override
Widget build(BuildContext context) {
return const Scaffold(
body: Center(
child: TextPlus(
'Hello _ world_!, ..this.. is *simple* ~example~ *text* with _multistyles_',
style: TextStyle(fontSize: 64),
textAlign: TextAlign.center,
),
),
);
}
}