Skip to content

Commit

Permalink
Release 2.2.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Tkko committed Oct 3, 2022
1 parent 81de939 commit 04db0bf
Show file tree
Hide file tree
Showing 15 changed files with 497 additions and 130 deletions.
2 changes: 1 addition & 1 deletion .flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"smart_auth","path":"/Users/dev/Dev/DH/Tools/flutter/.pub-cache/hosted/pub.dartlang.org/smart_auth-1.0.5/","native_build":true,"dependencies":[]}],"android":[{"name":"smart_auth","path":"/Users/dev/Dev/DH/Tools/flutter/.pub-cache/hosted/pub.dartlang.org/smart_auth-1.0.5/","native_build":true,"dependencies":[]}],"macos":[{"name":"smart_auth","path":"/Users/dev/Dev/DH/Tools/flutter/.pub-cache/hosted/pub.dartlang.org/smart_auth-1.0.5/","native_build":true,"dependencies":[]}],"linux":[{"name":"smart_auth","path":"/Users/dev/Dev/DH/Tools/flutter/.pub-cache/hosted/pub.dartlang.org/smart_auth-1.0.5/","native_build":true,"dependencies":[]}],"windows":[{"name":"smart_auth","path":"/Users/dev/Dev/DH/Tools/flutter/.pub-cache/hosted/pub.dartlang.org/smart_auth-1.0.5/","native_build":true,"dependencies":[]}],"web":[{"name":"smart_auth","path":"/Users/dev/Dev/DH/Tools/flutter/.pub-cache/hosted/pub.dartlang.org/smart_auth-1.0.5/","dependencies":[]}]},"dependencyGraph":[{"name":"smart_auth","dependencies":[]}],"date_created":"2022-10-03 20:47:34.494708","version":"3.0.1"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"smart_auth","path":"/Users/dev/Dev/DH/Tools/flutter/.pub-cache/hosted/pub.dartlang.org/smart_auth-1.0.5/","native_build":true,"dependencies":[]}],"android":[{"name":"smart_auth","path":"/Users/dev/Dev/DH/Tools/flutter/.pub-cache/hosted/pub.dartlang.org/smart_auth-1.0.5/","native_build":true,"dependencies":[]}],"macos":[{"name":"smart_auth","path":"/Users/dev/Dev/DH/Tools/flutter/.pub-cache/hosted/pub.dartlang.org/smart_auth-1.0.5/","native_build":true,"dependencies":[]}],"linux":[{"name":"smart_auth","path":"/Users/dev/Dev/DH/Tools/flutter/.pub-cache/hosted/pub.dartlang.org/smart_auth-1.0.5/","native_build":true,"dependencies":[]}],"windows":[{"name":"smart_auth","path":"/Users/dev/Dev/DH/Tools/flutter/.pub-cache/hosted/pub.dartlang.org/smart_auth-1.0.5/","native_build":true,"dependencies":[]}],"web":[{"name":"smart_auth","path":"/Users/dev/Dev/DH/Tools/flutter/.pub-cache/hosted/pub.dartlang.org/smart_auth-1.0.5/","dependencies":[]}]},"dependencyGraph":[{"name":"smart_auth","dependencies":[]}],"date_created":"2022-10-03 20:52:20.960788","version":"3.0.1"}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.2.13 -03/10/2022
- Bumped minimum Flutter SDK version to 2.0.0
- Added
| Property | Meaning/Default |
|------------|:-------:|
| isCursorAnimationEnabled | true |


## 2.2.12 -05/08/2022
- Added
| Property | Meaning/Default |
Expand Down
3 changes: 2 additions & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ linter:
- close_sinks
- unnecessary_const
- unnecessary_new
- prefer_single_quotes
- prefer_single_quotes
- require_trailing_commas
9 changes: 6 additions & 3 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,22 @@ class AppView extends StatelessWidget {
indicatorSize: TabBarIndicatorSize.label,
indicator: BoxDecoration(
border: Border(
bottom: BorderSide(color: Color.fromRGBO(30, 60, 87, 1), width: 2.0),
bottom: BorderSide(
color: Color.fromRGBO(30, 60, 87, 1), width: 2.0),
),
),
unselectedLabelStyle: GoogleFonts.poppins(fontSize: 16),
labelStyle: GoogleFonts.poppins(fontSize: 16, fontWeight: FontWeight.w600),
labelStyle: GoogleFonts.poppins(
fontSize: 16, fontWeight: FontWeight.w600),
labelColor: Color.fromRGBO(30, 60, 87, 1),
unselectedLabelColor: Color.fromRGBO(107, 137, 165, 1),
),
),
home: GalleryPage(),
);

final shortestSide = min(constraints.maxWidth.abs(), constraints.maxHeight.abs());
final shortestSide =
min(constraints.maxWidth.abs(), constraints.maxHeight.abs());
if (shortestSide > 600) {
return Container(
color: Colors.white,
Expand Down
3 changes: 2 additions & 1 deletion example/lib/pages/all_pinputs_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class AllPinputs extends StatefulWidget {
String toStringShort() => 'All';
}

class _AllPinputsState extends State<AllPinputs> with AutomaticKeepAliveClientMixin {
class _AllPinputsState extends State<AllPinputs>
with AutomaticKeepAliveClientMixin {
@override
Widget build(BuildContext context) {
super.build(context);
Expand Down
6 changes: 4 additions & 2 deletions example/lib/pages/gallery_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class GalleryPage extends StatefulWidget {
GalleryPageState createState() => GalleryPageState();
}

class GalleryPageState extends State<GalleryPage> with SingleTickerProviderStateMixin {
class GalleryPageState extends State<GalleryPage>
with SingleTickerProviderStateMixin {
TabController? _tabController;

final backgroundColors = [
Expand Down Expand Up @@ -42,7 +43,8 @@ class GalleryPageState extends State<GalleryPage> with SingleTickerProviderState
...otpPages,
]);

_tabController = TabController(length: pinPuts.length, vsync: this, initialIndex: 1);
_tabController =
TabController(length: pinPuts.length, vsync: this, initialIndex: 1);
_tabController!.animation!.addListener(() {
final focusScope = FocusScope.of(context);
if (focusScope.hasFocus) {
Expand Down
6 changes: 4 additions & 2 deletions example/lib/pinput_templates/rounded_with_cursor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import 'package:pinput/pinput.dart';

class RoundedWithCustomCursor extends StatefulWidget {
@override
_RoundedWithCustomCursorState createState() => _RoundedWithCustomCursorState();
_RoundedWithCustomCursorState createState() =>
_RoundedWithCustomCursorState();

@override
String toStringShort() => 'Rounded With Cursor';
Expand Down Expand Up @@ -51,7 +52,8 @@ class _RoundedWithCustomCursorState extends State<RoundedWithCustomCursor> {
child: Pinput(
controller: pinController,
focusNode: focusNode,
androidSmsAutofillMethod: AndroidSmsAutofillMethod.smsUserConsentApi,
androidSmsAutofillMethod:
AndroidSmsAutofillMethod.smsUserConsentApi,
listenForMultipleSmsOnAndroid: true,
defaultPinTheme: defaultPinTheme,
validator: (value) {
Expand Down
3 changes: 2 additions & 1 deletion example/lib/pinput_templates/rounded_with_shadow.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ class _RoundedWithShadowState extends State<RoundedWithShadow> {
final defaultPinTheme = PinTheme(
width: 60,
height: 64,
textStyle: GoogleFonts.poppins(fontSize: 20, color: Color.fromRGBO(70, 69, 66, 1)),
textStyle: GoogleFonts.poppins(
fontSize: 20, color: Color.fromRGBO(70, 69, 66, 1)),
decoration: BoxDecoration(
color: Color.fromRGBO(232, 235, 241, 0.37),
borderRadius: BorderRadius.circular(24),
Expand Down
Loading

0 comments on commit 04db0bf

Please sign in to comment.