Skip to content

Commit ecd47da

Browse files
committed
General improvement of the code
1 parent a41c751 commit ecd47da

File tree

8 files changed

+856
-889
lines changed

8 files changed

+856
-889
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [0.3.0] - 2019-07-07.
2+
3+
* General improvement of the code.
4+
15
## [0.2.9] - 2019-06-20.
26

37
* Updated dependencies.
@@ -7,7 +11,7 @@
711

812
* fix history.
913

10-
## [0.2.8] - 2019-06-14.
14+
## [0.2.7] - 2019-06-14.
1115

1216
* Cleaning code.
1317
* Update Readme.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# flutter_inner_drawer
2-
[![pub package](https://img.shields.io/badge/pub-0.2.9-orange.svg)](https://pub.dartlang.org/packages/flutter_inner_drawer)
2+
[![pub package](https://img.shields.io/badge/pub-0.3.0-orange.svg)](https://pub.dartlang.org/packages/flutter_inner_drawer)
33
[![Awesome Flutter](https://img.shields.io/badge/Awesome-Flutter-blue.svg?longCache=true&style=flat-square)](https://github.com/Solido/awesome-flutter#drawers)
44
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/dnag88)
55

@@ -10,7 +10,7 @@ Inner Drawer is an easy way to create an internal side section (left/right) wher
1010
Add this to your package's pubspec.yaml file:
1111
```dart
1212
dependencies:
13-
flutter_inner_drawer: "^0.2.9"
13+
flutter_inner_drawer: "^0.3.0"
1414
```
1515
## Demo
1616
<div align="center">

example/lib/env.dart

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import 'package:flutter/material.dart';
22

3-
class Env
4-
{
5-
static final facebook_icon = IconData (0xea94, fontFamily: 'icon'
6-
);
7-
}
3+
class Env {
4+
static final facebook_icon = IconData(0xea94, fontFamily: 'icon');
5+
}

example/lib/generated/i18n.dart

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@ class S implements WidgetsLocalizations {
1212
const S();
1313

1414
static const GeneratedLocalizationsDelegate delegate =
15-
GeneratedLocalizationsDelegate();
15+
GeneratedLocalizationsDelegate();
1616

1717
static S of(BuildContext context) => Localizations.of<S>(context, S);
1818

1919
@override
2020
TextDirection get textDirection => TextDirection.ltr;
21-
2221
}
2322

2423
class $en extends S {
@@ -74,22 +73,22 @@ class GeneratedLocalizationsDelegate extends LocalizationsDelegate<S> {
7473
case "en":
7574
return SynchronousFuture<S>(const $en());
7675
default:
77-
// NO-OP.
76+
// NO-OP.
7877
}
7978
}
8079
return SynchronousFuture<S>(const S());
8180
}
8281

8382
@override
8483
bool isSupported(Locale locale) =>
85-
locale != null && supportedLocales.contains(locale);
84+
locale != null && supportedLocales.contains(locale);
8685

8786
@override
8887
bool shouldReload(GeneratedLocalizationsDelegate old) => false;
8988
}
9089

9190
String getLang(Locale l) => l == null
92-
? null
93-
: l.countryCode != null && l.countryCode.isEmpty
94-
? l.languageCode
95-
: l.toString();
91+
? null
92+
: l.countryCode != null && l.countryCode.isEmpty
93+
? l.languageCode
94+
: l.toString();

0 commit comments

Comments
 (0)