Skip to content

kasinadhsarma1/sample_package

Repository files navigation

Hello World Flutter Package

A simple Flutter package that provides a Hello World widget with modern Material Design UI.

Features

  • 🎨 HelloWorldApp - Complete Material App with Hello World UI
  • 📱 HelloWorldPage - Standalone Hello World widget
  • 🎯 Modern Design - Material Design 3 theming
  • 🦋 Flutter Dash - Includes Flutter mascot icon
  • 📦 Easy Integration - Simple to add to any Flutter project

Installation

Add this package to your pubspec.yaml:

dependencies:
  helloworld: ^1.0.0

Usage

Use the complete app:

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

void main() {
  runApp(const HelloWorldApp());
}

Use just the Hello World page in your existing app:

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: HelloWorldPage(), // Add to your existing app
    );
  }
}

Example

See the /example folder for a complete example app.

Development

Running Tests

flutter test

Code Analysis

flutter analyze

Formatting

dart format .

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Make your changes
  4. Add tests for your changes
  5. Ensure all tests pass
  6. Create a Pull Request

Publishing

This package includes automated publishing to pub.dev via GitHub Actions. See PUBLISHING.md for setup instructions.

Manual Publishing

dart pub publish --dry-run  # Test publishing
dart pub publish            # Publish to pub.dev

License

MIT License - see LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages