From 92cb57ac8d0c0880749541ebb2e6817173f9f60d Mon Sep 17 00:00:00 2001 From: Mohamed-7018 <80456446+Mohamed-7018@users.noreply.github.com> Date: Mon, 20 Feb 2023 04:26:03 +0200 Subject: [PATCH] dart format --- .flutter-plugins | 17 +- .flutter-plugins-dependencies | 2 +- CHANGELOG.md | 5 +- README.md | 1 - example/lib/main.dart | 37 +--- .../Flutter/GeneratedPluginRegistrant.swift | 2 +- example/pubspec.lock | 183 +++++++++++------- example/pubspec.yaml | 3 +- example/test/widget_test.dart | 5 +- lib/draggable_customized_btn_navy_bar.dart | 1 + lib/src/button_scale.dart | 1 - lib/src/colors.dart | 1 - lib/src/dragged_hidden_menu_option.dart | 3 +- lib/src/enums.dart | 4 +- lib/src/menu_option.dart | 3 +- pubspec.yaml | 2 +- 16 files changed, 142 insertions(+), 128 deletions(-) diff --git a/.flutter-plugins b/.flutter-plugins index 28b040d..c50a85e 100644 --- a/.flutter-plugins +++ b/.flutter-plugins @@ -1,10 +1,9 @@ # This is a generated file; do not edit or check into version control. -path_provider_linux=E:\\old\\Local Disk f\\Users\\smarthelp\\Downloads\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\path_provider_linux-2.1.7\\ -path_provider_windows=E:\\old\\Local Disk f\\Users\\smarthelp\\Downloads\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\path_provider_windows-2.1.3\\ -shared_preferences=E:\\old\\Local Disk f\\Users\\smarthelp\\Downloads\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\shared_preferences-2.0.15\\ -shared_preferences_android=E:\\old\\Local Disk f\\Users\\smarthelp\\Downloads\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\shared_preferences_android-2.0.14\\ -shared_preferences_ios=E:\\old\\Local Disk f\\Users\\smarthelp\\Downloads\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\shared_preferences_ios-2.1.1\\ -shared_preferences_linux=E:\\old\\Local Disk f\\Users\\smarthelp\\Downloads\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\shared_preferences_linux-2.1.1\\ -shared_preferences_macos=E:\\old\\Local Disk f\\Users\\smarthelp\\Downloads\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\shared_preferences_macos-2.0.4\\ -shared_preferences_web=E:\\old\\Local Disk f\\Users\\smarthelp\\Downloads\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\shared_preferences_web-2.0.4\\ -shared_preferences_windows=E:\\old\\Local Disk f\\Users\\smarthelp\\Downloads\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\shared_preferences_windows-2.1.1\\ +path_provider_linux=C:\\Users\\mohamed samir\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\path_provider_linux-2.1.8\\ +path_provider_windows=C:\\Users\\mohamed samir\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\path_provider_windows-2.1.3\\ +shared_preferences=C:\\Users\\mohamed samir\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\shared_preferences-2.0.17\\ +shared_preferences_android=C:\\Users\\mohamed samir\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\shared_preferences_android-2.0.15\\ +shared_preferences_foundation=C:\\Users\\mohamed samir\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\shared_preferences_foundation-2.1.3\\ +shared_preferences_linux=C:\\Users\\mohamed samir\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\shared_preferences_linux-2.1.3\\ +shared_preferences_web=C:\\Users\\mohamed samir\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\shared_preferences_web-2.0.4\\ +shared_preferences_windows=C:\\Users\\mohamed samir\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\shared_preferences_windows-2.1.3\\ diff --git a/.flutter-plugins-dependencies b/.flutter-plugins-dependencies index 93a064c..adb26a8 100644 --- a/.flutter-plugins-dependencies +++ b/.flutter-plugins-dependencies @@ -1 +1 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"shared_preferences_ios","path":"E:\\\\old\\\\Local Disk f\\\\Users\\\\smarthelp\\\\Downloads\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences_ios-2.1.1\\\\","native_build":true,"dependencies":[]}],"android":[{"name":"shared_preferences_android","path":"E:\\\\old\\\\Local Disk f\\\\Users\\\\smarthelp\\\\Downloads\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences_android-2.0.14\\\\","native_build":true,"dependencies":[]}],"macos":[{"name":"shared_preferences_macos","path":"E:\\\\old\\\\Local Disk f\\\\Users\\\\smarthelp\\\\Downloads\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences_macos-2.0.4\\\\","native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"E:\\\\old\\\\Local Disk f\\\\Users\\\\smarthelp\\\\Downloads\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_linux-2.1.7\\\\","native_build":false,"dependencies":[]},{"name":"shared_preferences_linux","path":"E:\\\\old\\\\Local Disk f\\\\Users\\\\smarthelp\\\\Downloads\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences_linux-2.1.1\\\\","native_build":false,"dependencies":["path_provider_linux"]}],"windows":[{"name":"path_provider_windows","path":"E:\\\\old\\\\Local Disk f\\\\Users\\\\smarthelp\\\\Downloads\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_windows-2.1.3\\\\","native_build":false,"dependencies":[]},{"name":"shared_preferences_windows","path":"E:\\\\old\\\\Local Disk f\\\\Users\\\\smarthelp\\\\Downloads\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences_windows-2.1.1\\\\","native_build":false,"dependencies":["path_provider_windows"]}],"web":[{"name":"shared_preferences_web","path":"E:\\\\old\\\\Local Disk f\\\\Users\\\\smarthelp\\\\Downloads\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences_web-2.0.4\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_android","shared_preferences_ios","shared_preferences_linux","shared_preferences_macos","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_android","dependencies":[]},{"name":"shared_preferences_ios","dependencies":[]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]}],"date_created":"2022-12-18 14:39:25.302944","version":"3.3.9"} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"shared_preferences_foundation","path":"C:\\\\Users\\\\mohamed samir\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_foundation-2.1.3\\\\","native_build":true,"dependencies":[]}],"android":[{"name":"shared_preferences_android","path":"C:\\\\Users\\\\mohamed samir\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_android-2.0.15\\\\","native_build":true,"dependencies":[]}],"macos":[{"name":"shared_preferences_foundation","path":"C:\\\\Users\\\\mohamed samir\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_foundation-2.1.3\\\\","native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"C:\\\\Users\\\\mohamed samir\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_linux-2.1.8\\\\","native_build":false,"dependencies":[]},{"name":"shared_preferences_linux","path":"C:\\\\Users\\\\mohamed samir\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_linux-2.1.3\\\\","native_build":false,"dependencies":["path_provider_linux"]}],"windows":[{"name":"path_provider_windows","path":"C:\\\\Users\\\\mohamed samir\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_windows-2.1.3\\\\","native_build":false,"dependencies":[]},{"name":"shared_preferences_windows","path":"C:\\\\Users\\\\mohamed samir\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_windows-2.1.3\\\\","native_build":false,"dependencies":["path_provider_windows"]}],"web":[{"name":"shared_preferences_web","path":"C:\\\\Users\\\\mohamed samir\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_web-2.0.4\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_android","shared_preferences_foundation","shared_preferences_linux","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_android","dependencies":[]},{"name":"shared_preferences_foundation","dependencies":[]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]}],"date_created":"2023-02-20 04:24:19.201667","version":"3.7.0"} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 40457d4..b09d344 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,4 +9,7 @@ The package is solving a problem with package bottom_personalized_dot_bar as it - forget changes that take places in the displayed and hidden items in eah run, so the user setup will be forgetten once the app is closed. - not cross platform. -The Btn Nav bat is very beautiful and many people likes it so much. For these reasons I build this package for public to help them to add this beautful btn nav bar to their projets. I wish this will help you. \ No newline at end of file +The Btn Nav bat is very beautiful and many people likes it so much. For these reasons I build this package for public to help them to add this beautful btn nav bar to their projets. I wish this will help you. + +## 1.0.1+2 + Dart format to pass static analysis \ No newline at end of file diff --git a/README.md b/README.md index 5623e49..0b43de2 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,6 @@ ![Pub](https://img.shields.io/pub/v/draggable_customized_btn_navy_bar) Awesome Flutter -![Widget Tests](https://github.com/pedromassango/bottom_navy_bar/workflows/Widget%20Tests/badge.svg?branch=master) A bottom navigation bar that you can customize with the options you need, without any limits. You can also customize the appearance of the navigation bar. diff --git a/example/lib/main.dart b/example/lib/main.dart index ef9f7c4..b6ed79e 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -3,14 +3,6 @@ import 'package:flutter/material.dart'; import 'dart:math'; -/* -I/flutter (26783): item-5 - Alarma -I/flutter (26783): item-6 - Mensaje -I/flutter (26783): item-7 - Alerta -I/flutter (26783): item-8 - Seguridad -I/flutter (26783): item-9 - Ayuda -I/flutter (26783): item-10 - Config. -*/ void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { @@ -51,7 +43,7 @@ class MyHomePageState extends State { transitionBuilder: (Widget child, Animation animation) { final revealAnimation = Tween(begin: 0.0, end: 1.0).animate( CurvedAnimation(parent: animation, curve: Curves.ease)); - return AnimatedBuilder( + return AnimatedBuilder( builder: (BuildContext context, Widget? _) { return _buildAnimation( context, _itemSelected, child, revealAnimation.value); @@ -62,23 +54,11 @@ class MyHomePageState extends State { child: _buildPage(_itemSelected), ), DraggableCustomizedBtnNavyBar( - width: (MediaQuery.of(context).size.width > 600) ? 500.0 : null, keyItemSelected: _itemSelected, doneText: 'Done', settingTitleText: 'Your Menu', settingSubTitleText: 'Drag and drop', - - // boxShadow: const [ - // BoxShadow( - // color: Colors.black12, blurRadius: 10.0, spreadRadius: 1.0) - // ], - // iconSettingColor: const Color(0xFFFFD201), - // buttonDoneColor: const Color(0xFFFFD500), - // settingSubTitleColor: const Color(0xFFFECE02), - // maximumNumberOfDisplayItems : 4, - // minimumNumberOfDisplayedItems: 2, - hiddenItems: [ DraggableCustomizedDotBarItem('item-4', icon: Icons.cloud, @@ -264,11 +244,11 @@ class MyHomePageState extends State { } class FlutterPage extends StatelessWidget { - final Color ? backgroundColor; - final String ? urlAsset; - final String ? title; + final Color? backgroundColor; + final String? urlAsset; + final String? title; - const FlutterPage({Key ? key, this.backgroundColor, this.urlAsset, this.title}) + const FlutterPage({Key? key, this.backgroundColor, this.urlAsset, this.title}) : super(key: key); @override @@ -296,10 +276,11 @@ class FlutterPage extends StatelessWidget { } class PageReveal extends StatelessWidget { - final double ? revealPercent; - final Widget ? child; + final double? revealPercent; + final Widget? child; - const PageReveal({Key ? key, this.revealPercent, this.child}) : super(key: key); + const PageReveal({Key? key, this.revealPercent, this.child}) + : super(key: key); @override Widget build(BuildContext context) { diff --git a/example/macos/Flutter/GeneratedPluginRegistrant.swift b/example/macos/Flutter/GeneratedPluginRegistrant.swift index 287b6a9..724bb2a 100644 --- a/example/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/example/macos/Flutter/GeneratedPluginRegistrant.swift @@ -5,7 +5,7 @@ import FlutterMacOS import Foundation -import shared_preferences_macos +import shared_preferences_foundation func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) diff --git a/example/pubspec.lock b/example/pubspec.lock index 7a7c62c..9b3a756 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -5,77 +5,88 @@ packages: dependency: transitive description: name: async - url: "https://pub.dartlang.org" + sha256: bfe67ef28df125b7dddcea62755991f807aa39a2492a23e1550161692950bbe0 + url: "https://pub.dev" source: hosted - version: "2.9.0" + version: "2.10.0" boolean_selector: dependency: transitive description: name: boolean_selector - url: "https://pub.dartlang.org" + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.1" characters: dependency: transitive description: name: characters - url: "https://pub.dartlang.org" + sha256: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c + url: "https://pub.dev" source: hosted version: "1.2.1" clock: dependency: transitive description: name: clock - url: "https://pub.dartlang.org" + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" source: hosted version: "1.1.1" collection: dependency: transitive description: name: collection - url: "https://pub.dartlang.org" + sha256: cfc915e6923fe5ce6e153b0723c753045de46de1b4d63771530504004a45fae0 + url: "https://pub.dev" source: hosted - version: "1.16.0" + version: "1.17.0" cupertino_icons: dependency: "direct main" description: name: cupertino_icons - url: "https://pub.dartlang.org" + sha256: e35129dc44c9118cee2a5603506d823bab99c68393879edb440e0090d07586be + url: "https://pub.dev" source: hosted version: "1.0.5" dotted_border: dependency: transitive description: name: dotted_border - url: "https://pub.dartlang.org" + sha256: "07a5c5e8d4e6e992279e190e0352be8faa5b8f96d81c77a78b2d42f060279840" + url: "https://pub.dev" source: hosted version: "2.0.0+3" draggable_customized_btn_navy_bar: dependency: "direct main" description: - path: ".." - relative: true - source: path + name: draggable_customized_btn_navy_bar + sha256: dc37828ae6d14ec585bfc6a5c186983a2b0091c4aa43dede5e9bd41b16edb098 + url: "https://pub.dev" + source: hosted version: "1.0.1+1" fake_async: dependency: transitive description: name: fake_async - url: "https://pub.dartlang.org" + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" source: hosted version: "1.3.1" ffi: dependency: transitive description: name: ffi - url: "https://pub.dartlang.org" + sha256: a38574032c5f1dd06c4aee541789906c12ccaab8ba01446e800d9c5b79c4a978 + url: "https://pub.dev" source: hosted version: "2.0.1" file: dependency: transitive description: name: file - url: "https://pub.dartlang.org" + sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d" + url: "https://pub.dev" source: hosted version: "6.1.4" flutter: @@ -87,7 +98,8 @@ packages: dependency: "direct dev" description: name: flutter_lints - url: "https://pub.dartlang.org" + sha256: aeb0b80a8b3709709c9cc496cdc027c5b3216796bc0af0ce1007eaf24464fd4c + url: "https://pub.dev" source: hosted version: "2.0.1" flutter_test: @@ -104,156 +116,170 @@ packages: dependency: transitive description: name: js - url: "https://pub.dartlang.org" + sha256: "5528c2f391ededb7775ec1daa69e65a2d61276f7552de2b5f7b8d34ee9fd4ab7" + url: "https://pub.dev" source: hosted - version: "0.6.4" + version: "0.6.5" lints: dependency: transitive description: name: lints - url: "https://pub.dartlang.org" + sha256: "5e4a9cd06d447758280a8ac2405101e0e2094d2a1dbdd3756aec3fe7775ba593" + url: "https://pub.dev" source: hosted version: "2.0.1" matcher: dependency: transitive description: name: matcher - url: "https://pub.dartlang.org" + sha256: "16db949ceee371e9b99d22f88fa3a73c4e59fd0afed0bd25fc336eb76c198b72" + url: "https://pub.dev" source: hosted - version: "0.12.12" + version: "0.12.13" material_color_utilities: dependency: transitive description: name: material_color_utilities - url: "https://pub.dartlang.org" + sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 + url: "https://pub.dev" source: hosted - version: "0.1.5" + version: "0.2.0" meta: dependency: transitive description: name: meta - url: "https://pub.dartlang.org" + sha256: "6c268b42ed578a53088d834796959e4a1814b5e9e164f147f580a386e5decf42" + url: "https://pub.dev" source: hosted version: "1.8.0" path: dependency: transitive description: name: path - url: "https://pub.dartlang.org" + sha256: db9d4f58c908a4ba5953fcee2ae317c94889433e5024c27ce74a37f94267945b + url: "https://pub.dev" source: hosted version: "1.8.2" path_drawing: dependency: transitive description: name: path_drawing - url: "https://pub.dartlang.org" + sha256: bbb1934c0cbb03091af082a6389ca2080345291ef07a5fa6d6e078ba8682f977 + url: "https://pub.dev" source: hosted version: "1.0.1" path_parsing: dependency: transitive description: name: path_parsing - url: "https://pub.dartlang.org" + sha256: e3e67b1629e6f7e8100b367d3db6ba6af4b1f0bb80f64db18ef1fbabd2fa9ccf + url: "https://pub.dev" source: hosted version: "1.0.1" path_provider_linux: dependency: transitive description: name: path_provider_linux - url: "https://pub.dartlang.org" + sha256: "2e32f1640f07caef0d3cb993680f181c79e54a3827b997d5ee221490d131fbd9" + url: "https://pub.dev" source: hosted - version: "2.1.7" + version: "2.1.8" path_provider_platform_interface: dependency: transitive description: name: path_provider_platform_interface - url: "https://pub.dartlang.org" + sha256: f0abc8ebd7253741f05488b4813d936b4d07c6bae3e86148a09e342ee4b08e76 + url: "https://pub.dev" source: hosted version: "2.0.5" path_provider_windows: dependency: transitive description: name: path_provider_windows - url: "https://pub.dartlang.org" + sha256: bcabbe399d4042b8ee687e17548d5d3f527255253b4a639f5f8d2094a9c2b45c + url: "https://pub.dev" source: hosted version: "2.1.3" platform: dependency: transitive description: name: platform - url: "https://pub.dartlang.org" + sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76" + url: "https://pub.dev" source: hosted version: "3.1.0" plugin_platform_interface: dependency: transitive description: name: plugin_platform_interface - url: "https://pub.dartlang.org" + sha256: dbf0f707c78beedc9200146ad3cb0ab4d5da13c246336987be6940f026500d3a + url: "https://pub.dev" source: hosted version: "2.1.3" process: dependency: transitive description: name: process - url: "https://pub.dartlang.org" + sha256: "53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09" + url: "https://pub.dev" source: hosted version: "4.2.4" shared_preferences: dependency: transitive description: name: shared_preferences - url: "https://pub.dartlang.org" + sha256: "5949029e70abe87f75cfe59d17bf5c397619c4b74a099b10116baeb34786fad9" + url: "https://pub.dev" source: hosted - version: "2.0.15" + version: "2.0.17" shared_preferences_android: dependency: transitive description: name: shared_preferences_android - url: "https://pub.dartlang.org" + sha256: "955e9736a12ba776bdd261cf030232b30eadfcd9c79b32a3250dd4a494e8c8f7" + url: "https://pub.dev" source: hosted - version: "2.0.14" - shared_preferences_ios: + version: "2.0.15" + shared_preferences_foundation: dependency: transitive description: - name: shared_preferences_ios - url: "https://pub.dartlang.org" + name: shared_preferences_foundation + sha256: "2b55c18636a4edc529fa5cd44c03d3f3100c00513f518c5127c951978efcccd0" + url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.3" shared_preferences_linux: dependency: transitive description: name: shared_preferences_linux - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.1" - shared_preferences_macos: - dependency: transitive - description: - name: shared_preferences_macos - url: "https://pub.dartlang.org" + sha256: f8ea038aa6da37090093974ebdcf4397010605fd2ff65c37a66f9d28394cb874 + url: "https://pub.dev" source: hosted - version: "2.0.4" + version: "2.1.3" shared_preferences_platform_interface: dependency: transitive description: name: shared_preferences_platform_interface - url: "https://pub.dartlang.org" + sha256: da9431745ede5ece47bc26d5d73a9d3c6936ef6945c101a5aca46f62e52c1cf3 + url: "https://pub.dev" source: hosted version: "2.1.0" shared_preferences_web: dependency: transitive description: name: shared_preferences_web - url: "https://pub.dartlang.org" + sha256: a4b5bc37fe1b368bbc81f953197d55e12f49d0296e7e412dfe2d2d77d6929958 + url: "https://pub.dev" source: hosted version: "2.0.4" shared_preferences_windows: dependency: transitive description: name: shared_preferences_windows - url: "https://pub.dartlang.org" + sha256: "5eaf05ae77658d3521d0e993ede1af962d4b326cd2153d312df716dc250f00c9" + url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.3" sky_engine: dependency: transitive description: flutter @@ -263,65 +289,74 @@ packages: dependency: transitive description: name: source_span - url: "https://pub.dartlang.org" + sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 + url: "https://pub.dev" source: hosted - version: "1.9.0" + version: "1.9.1" stack_trace: dependency: transitive description: name: stack_trace - url: "https://pub.dartlang.org" + sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.11.0" stream_channel: dependency: transitive description: name: stream_channel - url: "https://pub.dartlang.org" + sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.1" string_scanner: dependency: transitive description: name: string_scanner - url: "https://pub.dartlang.org" + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.2.0" term_glyph: dependency: transitive description: name: term_glyph - url: "https://pub.dartlang.org" + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" source: hosted version: "1.2.1" test_api: dependency: transitive description: name: test_api - url: "https://pub.dartlang.org" + sha256: ad540f65f92caa91bf21dfc8ffb8c589d6e4dc0c2267818b4cc2792857706206 + url: "https://pub.dev" source: hosted - version: "0.4.12" + version: "0.4.16" vector_math: dependency: transitive description: name: vector_math - url: "https://pub.dartlang.org" + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.4" win32: dependency: transitive description: name: win32 - url: "https://pub.dartlang.org" + sha256: c9ebe7ee4ab0c2194e65d3a07d8c54c5d00bb001b76081c4a04cdb8448b59e46 + url: "https://pub.dev" source: hosted - version: "3.1.2" + version: "3.1.3" xdg_directories: dependency: transitive description: name: xdg_directories - url: "https://pub.dartlang.org" + sha256: ee1505df1426458f7f60aac270645098d318a8b4766d85fde75f76f2e21807d1 + url: "https://pub.dev" source: hosted - version: "0.2.0+2" + version: "1.0.0" sdks: - dart: ">=2.18.5 <3.0.0" + dart: ">=2.18.5 <4.0.0" flutter: ">=3.0.0" diff --git a/example/pubspec.yaml b/example/pubspec.yaml index d2aea7f..9bb8ac4 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -36,8 +36,7 @@ dependencies: # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.2 - draggable_customized_btn_navy_bar: - path: ../ + draggable_customized_btn_navy_bar: ^1.0.1+1 dev_dependencies: flutter_test: diff --git a/example/test/widget_test.dart b/example/test/widget_test.dart index 85efcfc..30fe7e9 100644 --- a/example/test/widget_test.dart +++ b/example/test/widget_test.dart @@ -9,13 +9,10 @@ import 'package:example/main.dart'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; - - - void main() { testWidgets('Counter increments smoke test', (WidgetTester tester) async { // Build our app and trigger a frame. - await tester.pumpWidget( const MyApp()); + await tester.pumpWidget(const MyApp()); // Verify that our counter starts at 0. expect(find.text('0'), findsOneWidget); diff --git a/lib/draggable_customized_btn_navy_bar.dart b/lib/draggable_customized_btn_navy_bar.dart index 2fa96f3..354f55d 100644 --- a/lib/draggable_customized_btn_navy_bar.dart +++ b/lib/draggable_customized_btn_navy_bar.dart @@ -2,6 +2,7 @@ library draggable_customized_btn_navy_bar; import 'dart:async'; +//kkkk import 'package:dotted_border/dotted_border.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; diff --git a/lib/src/button_scale.dart b/lib/src/button_scale.dart index fc810cf..312cede 100644 --- a/lib/src/button_scale.dart +++ b/lib/src/button_scale.dart @@ -1,6 +1,5 @@ part of draggable_customized_btn_navy_bar; - class ButtonScale extends StatefulWidget { final Widget? child; final VoidCallback? onTap; diff --git a/lib/src/colors.dart b/lib/src/colors.dart index a710e3e..80d5715 100644 --- a/lib/src/colors.dart +++ b/lib/src/colors.dart @@ -1,6 +1,5 @@ part of draggable_customized_btn_navy_bar; - const Color appPink = Color.fromRGBO(239, 62, 65, 1); //Colors.pink[700]; const Color appBlue = Color.fromRGBO(33, 66, 141, 1); const Color kScaffoldLight = Colors.white; diff --git a/lib/src/dragged_hidden_menu_option.dart b/lib/src/dragged_hidden_menu_option.dart index d04482c..37cba34 100644 --- a/lib/src/dragged_hidden_menu_option.dart +++ b/lib/src/dragged_hidden_menu_option.dart @@ -27,8 +27,7 @@ class DraggedHiddenMenuOption extends StatefulWidget { : super(key: key); @override - DraggedHiddenMenuOptionState createState() => - DraggedHiddenMenuOptionState(); + DraggedHiddenMenuOptionState createState() => DraggedHiddenMenuOptionState(); } class DraggedHiddenMenuOptionState extends State { diff --git a/lib/src/enums.dart b/lib/src/enums.dart index b9c767e..c8431e2 100644 --- a/lib/src/enums.dart +++ b/lib/src/enums.dart @@ -1,5 +1,7 @@ part of draggable_customized_btn_navy_bar; enum EventDragEnum { start, update, end } + enum StatusDragged { dragged, unDragged, none } -enum TypeMenuOption { navigation, hidden } \ No newline at end of file + +enum TypeMenuOption { navigation, hidden } diff --git a/lib/src/menu_option.dart b/lib/src/menu_option.dart index f707674..09a4167 100644 --- a/lib/src/menu_option.dart +++ b/lib/src/menu_option.dart @@ -6,7 +6,8 @@ class MenuOption extends StatelessWidget { final GestureTapCallback? _onTap; final bool _enable; - const MenuOption(this._iconData, this._colorIcon, this._onTap, this._enable, {super.key}); + const MenuOption(this._iconData, this._colorIcon, this._onTap, this._enable, + {super.key}); @override Widget build(BuildContext context) { diff --git a/pubspec.yaml b/pubspec.yaml index 491bbb9..163d775 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: draggable_customized_btn_navy_bar description: draggable_customized_btn_navy_bar, Drag and drop all your items, customize your bottom navigation in the best way. -version: 1.0.1+1 +version: 1.0.1+2 homepage: https://github.com/Mohamed-7018/draggable_customized_btn_navy_bar environment: