flutter_andomie 0.5.4-alpha1 flutter_andomie: ^0.5.4-alpha1 copied to clipboard
Collection of utils with advanced style and controlling system.
import 'package:flutter/material.dart';
import 'package:flutter_andomie/core.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
runApp(const Application());
}
class Application extends StatelessWidget {
const Application({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
debugShowCheckedModeBanner: false,
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const Home(),
);
}
}
class Home extends StatelessWidget {
const Home({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
var timeMills = DateTime.now().add(const Duration(
days: 0,
hours: 0,
minutes: 0,
seconds: 0,
));
return Scaffold(
body: SafeArea(
child: Text(timeMills.toRealtime(
showRealtime: true,
whenShowNow: 10,
)),
),
);
}
}