Skip to content

Commit 93fd0b0

Browse files
author
Jens Becker
committed
[Rename] package to Fleasy
1 parent 9343fb4 commit 93fd0b0

File tree

6 files changed

+108
-8
lines changed

6 files changed

+108
-8
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2020, Jens Becker
3+
Copyright (c) 2021, Jens Becker
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

README.md

Lines changed: 99 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,100 @@
1-
# Flutter Extensions
1+
# Fleasy
22

3-
Some Flutter/Dart extensions which I need very often :)
3+
This package helps creating Flutter apps easier by providing useful and easy to use extensions, helper classes and widgets.
4+
5+
The goal is that by using this package you have to write less (repeating) and more clean and readable code.
6+
7+
This package contains the following features:
8+
9+
### Extensions:
10+
- #### `BuildContext`
11+
- `mediaQuery`
12+
- `screenSize`
13+
- `screenWidth`
14+
- `screenHeight`
15+
- `screenOrientation`
16+
- `screenIsLandscape`
17+
- `screenIsPortrait`
18+
- `formFactor`
19+
- `closeKeyboard()`
20+
- `pushRoute(...)`
21+
- `pushPage(...)`
22+
- `popPage()`
23+
- `canPopPage()`
24+
25+
- #### `String`
26+
- `addHttps()`
27+
- `isValidEmail`
28+
- `isInvalidEmail`
29+
30+
- #### `String?`
31+
- `isNotBlank`
32+
- `isBlank`
33+
- `isValidEmail`
34+
- `isInvalidEmail`
35+
- `toNullIfBlank()`
36+
37+
- #### `DateTime`
38+
- `copyWith(...)`
39+
- `isToday`
40+
- `isYesterday`
41+
- `isTomorrow`
42+
- `isFutureDay`
43+
- `isSameDay(...)`
44+
- `timeIsZero`
45+
- `copyWithEmptyTime()`
46+
- `format(...)`
47+
48+
- #### `List<DateTime>`
49+
- `containsDate(...)`
50+
- `indexOfDate(...)`
51+
52+
- #### `List?`
53+
- `isNotBlank`
54+
- `isBlank`
55+
56+
- #### `List<T>`
57+
- `find(...)`
58+
59+
60+
### Helper Classes:
61+
- #### `Date`
62+
- `Date.today()`
63+
- `Date.tomorrow()`
64+
- `Date.yesterday()`
65+
66+
- #### `DeviceType`
67+
- `DeviceType.isIOS`
68+
- `DeviceType.isAndroid`
69+
- `DeviceType.isMacOS`
70+
- `DeviceType.isLinux`
71+
- `DeviceType.isWindows`
72+
- `DeviceType.isWeb`
73+
- `DeviceType.isDesktop`
74+
- `DeviceType.isMobile`
75+
- `DeviceType.isDesktopOrWeb`
76+
- `DeviceType.isMobileOrWeb`
77+
78+
- #### `Insets`
79+
- `xxs`
80+
- `xs`
81+
- `s`
82+
- `m`
83+
- `l`
84+
- `xl`
85+
- `xxl`
86+
87+
### Flutter Widgets:
88+
- EasyStreamBuilder(...)
89+
- EasyFutureBuilder(...)
90+
91+
------
92+
93+
### To-Do's:
94+
- [ ] Add more tests
95+
- [ ] Document the complete code
96+
- [ ] Create example app
97+
98+
### Note:
99+
This package is still in early stages.
100+
If you notice any bugs not present in issues, please file a new issue. If you are willing to fix or enhance things yourself, you are very welcome to make a pull request.
File renamed without changes.

lib/src/string_extensions.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ extension NullableStringUtils on String? {
2828
/// Returns true if the string is an invalid email.
2929
bool get isInvalidEmail => !isValidEmail;
3030

31-
/// Returns null if the string is blank (empty or null) or it's text if it's no blank.
31+
/// Returns null if the string is blank (empty or null) or it's text if not.
3232
String? toNullIfBlank() => isNotBlank ? this : null;
3333
}

pubspec.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
name: flutter_extensions
2-
description: Some Flutter/Dart extensions which I need very often :)
1+
name: fleasy
2+
description: Useful and easy to use extensions, helper classes and widgets to help creating Flutter apps easier.
33
version: 1.0.0
4-
repository: https://github.com/devj3ns/flutter_extensions
4+
repository: https://github.com/devj3ns/fleasy
5+
authors:
6+
- Jens Becker - jensbecker.dev
57

68
environment:
79
sdk: ">=2.12.0 <3.0.0"
@@ -12,6 +14,7 @@ dependencies:
1214

1315
intl: ^0.17.0
1416
universal_platform: ^1.0.0-nullsafety
17+
font_awesome_flutter: ^9.1.0
1518

1619
dev_dependencies:
1720
test: ^1.17.8

test/date_time_tests.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import 'package:flutter_extensions/flutter_extensions.dart';
1+
import 'package:flutter_extensions/fleasy.dart';
22
import 'package:test/test.dart';
33

44
void main() {

0 commit comments

Comments
 (0)