Simple Greet

A simple Flutter package that provides functions for greetings and farewells. This package was created as an example for the pub.dev publishing process.

Features

  • Provides a customizable "Hello" greeting.
  • Provides a "Goodbye" farewell message.

Usage

Add simple_greet to your pubspec.yaml file, then import the package in your Dart file.

import 'package:simple_greet/simple_greet.dart';

void main() {
  // Usage example
  String greeting = Greeter.greet("World");
  print(greeting); // Output: Hello World!

  String farewellMessage = Greeter.farewell("World");
  print(farewellMessage); // Output: Goodbye World, see you soon!
}

Libraries

simple_greet