hello_world_lib 1.0.2 copy "hello_world_lib: ^1.0.2" to clipboard
hello_world_lib: ^1.0.2 copied to clipboard

A simple Hello World library for Flutter

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Hello World Lib Example',
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Hello World Library Example'),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            HelloWorldWidget(),
            SizedBox(height: 20),
            HelloWorldWidget(
              name: 'Flutter Developer',
              textStyle: TextStyle(fontSize: 20, color: Colors.blue),
            ),
            SizedBox(height: 20),
            HelloWorldWidget(
              name: 'World',
              showTime: true,
              textStyle: TextStyle(fontSize: 18, color: Colors.green),
            ),
          ],
        ),
      ),
    );
  }
}
1
likes
150
points
35
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A simple Hello World library for Flutter

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on hello_world_lib