moon_phase 1.0.0 moon_phase: ^1.0.0 copied to clipboard
MoonWidget plugin project.
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter/services.dart';
import 'package:moon_phase/moon_phase.dart';
import 'package:moon_phase/moon_widget.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('MoonWidget example app'),
),
body: Center(
child: SizedBox(
child: MoonWidget(
date: DateTime.now().add(const Duration(days: 5)),
scale: 1,
),
),
),
),
);
}
}