https://github.com/thealphamerc/empty_widget
Custom_Empty widget is flutter plugin which is designed to notify user about some event.
https://github.com/thealphamerc/empty_widget
custom-widget empty-widget flutter flutter-package flutter-plugin plugin pubsub
Last synced: 24 days ago
JSON representation
Custom_Empty widget is flutter plugin which is designed to notify user about some event.
- Host: GitHub
- URL: https://github.com/thealphamerc/empty_widget
- Owner: TheAlphamerc
- License: bsd-3-clause
- Created: 2019-12-23T10:59:51.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-03T04:35:55.000Z (7 months ago)
- Last Synced: 2025-03-29T12:09:48.492Z (about 1 month ago)
- Topics: custom-widget, empty-widget, flutter, flutter-package, flutter-plugin, plugin, pubsub
- Language: Dart
- Homepage: https://pub.dev/packages/empty_widget
- Size: 834 KB
- Stars: 70
- Watchers: 3
- Forks: 32
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
## Empty Widget
[](https://github.com/Thealphamerc/empty_widget)


[](https://github.com/Thealphamerc/empty_widget)
[](https://github.com/login?return_to=https://github.com/FTheAlphamerc/empty_widget)
[](https://pub.dev/packages/empty_widget)
[](https://pub.dev/packages/empty_widget/score)
[](https://pub.dev/packages/empty_widget/score)
[](https://pub.dev/packages/empty_widget/score)[](https://hits.seeyoufarm.com)
Custom_Empty widget is flutter custom widget which is designed to notify user about some event.
## Screenshots
Screenshots | Screenshots | Screenshots | Screenshots
:-------------------------:|:-------------------------:|:-------------------------:|:-------------------------:
|| |## Getting Started
### 1. Add library to your pubspec.yaml```yaml
dependencies:
empty_widget: ^0.0.3
```### 2. Import library in dart file
```dart
import 'package:empty_widget/empty_widget.dart';
```
### 3. Use of EmptyWidget
```dart
EmptyWidget(
image: null,
packageImage: PackageImage.Image_1,
title: 'No Notification',
subTitle: 'No notification available yet',
titleTextStyle: TextStyle(
fontSize: 22,
color: Color(0xff9da9c7),
fontWeight: FontWeight.w500,
),
subtitleTextStyle: TextStyle(
fontSize: 14,
color: Color(0xffabb8d6),
),
);
```
## Example``` dart
import 'package:empty_widget/empty_widget.dart';
import 'package:flutter/material.dart';void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(title: 'Empty widget demo'),
);
}
}class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
final String title;@override
_MyHomePageState createState() => _MyHomePageState();
}class _MyHomePageState extends State {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Container(
alignment: Alignment.center,
child: EmptyWidget(
image: null,
packageImage: PackageImage.Image_1,
title: 'No Notification',
subTitle: 'No notification available yet',
titleTextStyle: TextStyle(
fontSize: 22,
color: Color(0xff9da9c7),
fontWeight: FontWeight.w500,
),
subtitleTextStyle: TextStyle(
fontSize: 14,
color: Color(0xffabb8d6),
),
),
),
);
}
}
```## Parameters and Value
| Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| title | `string` | Set text for title |
| subTitle | `string` | Set text for subtitle |
| image | `string` | Display images from project assets |
| packageImage | `PackageImage`| Display image from package assets |
| titleTextStyle| `TextStyle` | Set text style for title|
| subtitleTextStyle| `TextStyle` | Set text style for subtitle|
| hideBackgroundAnimation| `bool` | Hides the background circular ball animation |## Pull Requests
I welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request.
## Created & Maintained By
[Sonu Sharma](https://github.com/TheAlphamerc) ([Twitter](https://www.twitter.com/TheAlphamerc)) ([Youtube](https://www.youtube.com/user/sonusharma045sonu/))
([Insta](https://www.instagram.com/_sonu_sharma__)) > If you found this project helpful or you learned something from the source code and want to thank me, consider buying me a cup of :coffee:
>> *
![]()
> * [PayPal](https://www.paypal.me/TheAlphamerc/)## Visitors Count