flutter_static_utility 1.0.0
flutter_static_utility: ^1.0.0 copied to clipboard
Flutter static utilities (email/nickname/phoneNumber .. regex, timeAgo, thousand to K)
example/example.dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Example',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const ExamplePage(),
);
}
}
class ExamplePage extends StatelessWidget {
const ExamplePage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Example'),
),
body: Container(
margin: const EdgeInsets.symmetric(horizontal: 16, vertical: 16),
child: Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: const <Widget>[
],
),
),
),
);
}
}