moon_phase 1.0.0 copy "moon_phase: ^1.0.0" to clipboard
moon_phase: ^1.0.0 copied to clipboard

outdated

MoonWidget plugin project.

example/lib/main.dart

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,
            ),
          ),
        ),
      ),
    );
  }
}
18
likes
0
pub points
70%
popularity

Publisher

unverified uploader

MoonWidget plugin project.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on moon_phase