eca_packages 0.0.1+5
eca_packages: ^0.0.1+5 copied to clipboard
This package was developed in order to specialize components used in the development of my applications. It's not a single-use package, as the rule of thumb for package adoption dictates. Here at ECA [...]
example/lib/main.dart
import 'package:eca_packages/eca_packages.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'TextECA Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(title: 'TextECA Demo'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key? key, required this.title}) : super(key: key);
final String title;
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: TextECA(
maxLines: 1,
text: 'ECA Packages',
fontWeight: FontWeight.bold,
color: Colors.black,
fontSize: 24,
textAlign: TextAlign.start,
textOverflow: TextOverflow.ellipsis,
));
}
}