0 purchases
captalize
My Package #
My Package is a Flutter package that provides custom widgets and utilities for building Flutter applications.
Features #
Custom Button widget
Custom Text
Utility functions for working with dates
Installation #
To use My Package, add the following dependency to your pubspec.yaml file:
dependencies:
my_package: any
Then, run flutter pub get to install the package.
Usage #
To use the custom Button widget, import the my_package.dart file and create a new MyButton widget:
import 'package:my_package/my_package.dart';
void main() {
runApp(
MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text(capitalize("hello world"))), ////output:- Hello World
body: Center(
child: MyButton(
text: 'Click me!',
onPressed: () => print('Button clicked!'),
),
),
),
),
);
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.