growable_text 0.0.5 growable_text: ^0.0.5 copied to clipboard
A text widget that will grow to fill the width of it's parent.
import 'package:flutter/material.dart';
import 'package:growable_text/growable_text.dart';
void main() {
runApp(const MainApp());
}
class MainApp extends StatelessWidget {
const MainApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Container(
color: Colors.blue,
width: 200,
child: const Column(
children: [
GrowableText('Hello World!'),
],
),
),
),
);
}
}