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

outdated

To be able to show greeting message depending upon time.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_greetings/flutter_greetings.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: Text("Flutter Greetings")),
        body: Center(
          child: Text(YonoGreetings.showGreetings()),
        ));
  }
}
20
likes
30
pub points
32%
popularity

Publisher

unverified uploader

To be able to show greeting message depending upon time.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_greetings