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

outdated

This package give you support to add your custom nicknames. Your can also use default nicknames as well.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});
  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  String? selectedNameStyle;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text(widget.title)),
      body: Center(
        child: Text(
          selectedNameStyle ?? 'Some Text',
          style: Theme.of(context).textTheme.headlineMedium,
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () async {
          /// Use this to launch nickname app
          selectedNameStyle = await EasyNicknameApp.launchApp(context,
              title: 'Nick Name Generator');
          setState(() {});
        },
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ),
    );
  }
}
7
likes
0
points
29
downloads

Publisher

verified publishernooralibutt.com

Weekly Downloads

This package give you support to add your custom nicknames. Your can also use default nicknames as well.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on easy_nickname