world_names 0.0.5
world_names: ^0.0.5 copied to clipboard
A new Flutter package that generates random most popular names in the world
This package will generate random names from all over the world.
Features #
Generates a random name from a random country.
Getting started #
To get started just add the package in to your project
Usage #
Here's an example on how to use this package
import 'package:world_names/world_names.dart';
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
String name = NameGenerator.getName();
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('Flutter Name Generator')),
body: Center(child: Text(name)),
),
);
}
}
Additional information #
I will be adding more names as time progresses. If you want to help with this project, make sure to contact me and we'll go from there! Check out the published version here.