nb_utils 2.0.4
nb_utils: ^2.0.4 copied to clipboard
This package helps you daily usable function with ease. Just add nb_utils with its latest version and that's it you are ready to use.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:nb_utils/nb_utils.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
//
launchNewScreen(context, 'tag');
launchNewScreenWithNewTask(context, 'tag');
finish(context);
Color color = getColorFromHex('#FFFFF');
return MaterialApp(
title: 'Flutter Utils Example',
theme: ThemeData(
primarySwatch: whiteColor,
),
home: HomePage(''),
);
}
}
class HomePage extends StatelessWidget {
String text;
HomePage(this.text);
@override
Widget build(BuildContext context) {
return GestureDetector(
onTap: () {
HomePage('ffe').launch(context);
},
child: Container(
child: Text(text.validate()).withStyle(),
),
);
}
}