diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index f964b4d8..17404633 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -2,7 +2,7 @@ github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] patreon: # Replace with a single Patreon username -open_collective: getflutter +open_collective: getwidget ko_fi: # Replace with a single Ko-fi username tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry diff --git a/.gitignore b/.gitignore index 67e622db..746658ee 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ .buildlog/ .history .svn/ +.vscode # IntelliJ related *.iml @@ -29,9 +30,9 @@ .pub/ build/ web/ -getflutter-app-kit -getflutter-web-kit -getflutter_app +getwidget-app-kit +getwidget-web-kit +getwidget_app test/.test_coverage.dart # Android related diff --git a/CHANGELOG.md b/CHANGELOG.md index 4412ccbf..20676d1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,37 @@ # Changelog +## 1.1.1 - 2020-06-26 + +### Added +* added new components + - GFCheckbox + - GFRadio + +### Update +* Changed name to GetWidget + +### Fixed +* Many minor issues fixed + + + + +## 1.0.11 - 2020-03-11 + +### Fixed +* Resolved issues. + + + + +## 1.0.10 - 2020-03-11 + +### Fixed +* Few minor fixes + + + + ## 1.0.9 - 2020-03-02 ### Fixed @@ -9,6 +41,9 @@ * added new component - GFShimmer + + + ## 1.0.8 - 2020-02-18 ### Fixed diff --git a/LICENSE b/LICENSE index 2ec6a77d..948b474c 100644 --- a/LICENSE +++ b/LICENSE @@ -2,7 +2,7 @@ The MIT License (MIT) All the components that we reused from flutter has Copyright (c) 2020 Flutter Author. -All the components that we developed or customized has Copyright (c) 2020 Getflutter. +All the components that we developed or customized has Copyright (c) 2020 GetWidget. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. diff --git a/README.md b/README.md index 82b5759b..868d7f35 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -[![Financial Contributors on Open Collective](https://opencollective.com/getflutter/all/badge.svg?label=financial+contributors)](https://opencollective.com/getflutter) [![pub package](https://img.shields.io/pub/v/getflutter.svg)](https://pub.dartlang.org/packages/getflutter) [![Build Status](https://travis-ci.org/ionicfirebaseapp/getflutter.svg?branch=master)](https://travis-ci.com/ionicfirebaseapp/getflutter) [![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=102)](https://opensource.org/licenses/MIT) [![License](https://img.shields.io/badge/license-MIT-orange.svg)](https://github.com/ionicfirebaseapp/getwidget/blob/master/LICENSE) [![Gitter](https://badges.gitter.im/getflutterdev/getflutter.svg)](https://gitter.im/getflutterdev/getflutter) [![Twitter Follow](https://img.shields.io/twitter/follow/getflutterdev.svg?style=social)](https://twitter.com/getwidgetdev) +[![pub package](https://img.shields.io/pub/v/getwidget.svg)](https://pub.dartlang.org/packages/getwidget) [![Build Status](https://travis-ci.org/ionicfirebaseapp/getwidget.svg?branch=master)](https://travis-ci.com/ionicfirebaseapp/getwidget) [![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=102)](https://opensource.org/licenses/MIT) [![License](https://img.shields.io/badge/license-MIT-orange.svg)](https://github.com/ionicfirebaseapp/getwidget/blob/master/LICENSE) [![Twitter Follow](https://img.shields.io/twitter/follow/getwidgetdev.svg?style=social)](https://twitter.com/getwidgetdev)

- - Get Flutter + + GetWidget

@@ -22,8 +22,8 @@ ## Screenshot

- - Get Flutter Screens + + GetWidget Screens

@@ -44,7 +44,7 @@ we have launched the library with the following components : ### Play Store

- Get Flutter playstore Demo + GetWidget playstore Demo

@@ -57,13 +57,13 @@ we have launched the library with the following components : GetWidget is **100% free** and **open source**. We encourage and support an active, healthy community that accepts contributions from the public – including you. There are a couple of ways in which you can contribute to the growing community of `getwidget`. - * Pick up any issue marked with ["good first issue"](https://github.com/ionicfirebaseapp/getflutter/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) + * Pick up any issue marked with ["good first issue"](https://github.com/ionicfirebaseapp/getwidget/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) * Fix a bug * Write and improve some **documentation**. Documentation is very critical to us. We would appreciate help in adding multiple languages to our docs. * If you are a developer, feel free to check out the source and submit pull requests. * Dig into [**CONTRIBUTING.MD**](CONTRIBUTING.md), which covers submitting bugs, requesting new features, preparing your code for a pull request, etc. - * Please don't forget to **like**, **follow**, and **star our repo**! Join our growing [community](http://forum.getflutter.dev) to keep up to date with the latest GetWidget development. - * Not sure what to work on? [**We've got lots ideas.**](https://roadmap.getflutter.dev) + * Please don't forget to **like**, **follow**, and **star our repo**! Join our growing [community](http://forum.getwidget.dev) to keep up to date with the latest GetWidget development. + ## Documentation @@ -90,27 +90,27 @@ Instagram: ### Code Contributors This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. - + ### Financial Contributors -Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/getflutter/contribute)] +Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/getwidget/contribute)] #### Individuals - + #### Organizations -Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/getflutter/contribute)] - - - - - - - - - - - +Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/getwidget/contribute)] + + + + + + + + + + + \ No newline at end of file diff --git a/analysis_options.yaml b/analysis_options.yaml index 0b9cb8da..070fe4ce 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1,9 +1,9 @@ analyzer: exclude: - example - - getflutter_app - - getflutter-app-kit - - getflutter-web-kit + - getwidget_app + - getwidget-app-kit + - getwidget-web-kit - test/.test_coverage.dart linter: diff --git a/example/README.md b/example/README.md index ab1fe3fc..868d7f35 100644 --- a/example/README.md +++ b/example/README.md @@ -1,76 +1,116 @@ +[![pub package](https://img.shields.io/pub/v/getwidget.svg)](https://pub.dartlang.org/packages/getwidget) [![Build Status](https://travis-ci.org/ionicfirebaseapp/getwidget.svg?branch=master)](https://travis-ci.com/ionicfirebaseapp/getwidget) [![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=102)](https://opensource.org/licenses/MIT) [![License](https://img.shields.io/badge/license-MIT-orange.svg)](https://github.com/ionicfirebaseapp/getwidget/blob/master/LICENSE) [![Twitter Follow](https://img.shields.io/twitter/follow/getwidgetdev.svg?style=social)](https://twitter.com/getwidgetdev) + +

- - Get Flutter + + GetWidget

-[**GetFlutter**](https://www.getflutter.dev) is 100% open source UI library build to make flutter development easier than ever and reuse 1000+ pre-build widget in any Flutter Web or Mobile app development. - -[**NOTE**] Our library will also work on flutter web but still flutter web is in Beta release so some rendering problem may occur and hence we will update our library as flutter comes with stable release on Web. +[**GetWidget**](https://www.getwidget.dev) is a 100% free Flutter open-source UI library built with Flutter SDK to make Flutter development easier and more joyful than ever. GetWidget has 1000+ pre-build widgets that you can reuse to develop both Flutter mobile app and web app. Our motto is to provide the best Flutter UI library to the Flutter community to speed up their development process and build awesome apps with pre-build Flutter Library Components. ## Table of contents +- [Screenshot](#screenshot) - [Quick start](#quick-start) - [Features](#features) -- [Screenshot](#screenshot) - [Demo](#demo) - [Contributing](#contributing) -- [Bugs and feature requests](#bugs-and-feature-requests) - [Documentation](#documentation) - [Copyright and license](#copyright-and-license) + + ## Screenshot +

+ + GetWidget Screens + +

+ + ## Quick start -Read the [Getting started page](https://docs.getflutter.dev) -Forum [Support and discussion ](https://forum.getflutter.dev) +Read the [Getting started page](https://docs.getwidget.dev) +Forum [Support and discussion ](https://forum.getwidget.dev) ## Features -In this beta release we are going to launch the library with following components : - - #### Button | Badge | Avatar | Image | Card | Carousel | Tile | Tab | Typography +we have launched the library with the following components : + #### [Button](https://docs.getwidget.dev/gf-button) | [Badge](https://docs.getwidget.dev/gf-badge) | [Avatar](https://docs.getwidget.dev/gf-avatar) | [Image](https://docs.getwidget.dev/gf-image) | [Card](https://docs.getwidget.dev/gf-card) | [Carousel](https://docs.getwidget.dev/gf-carousel) | [Tile](https://docs.getwidget.dev/gf-tile) | [Tab](https://docs.getwidget.dev/gf-tab) | [Typography](https://docs.getwidget.dev/gf-typography) | [Toast](https://docs.getwidget.dev/gf-toast) | [Toggle](https://docs.getwidget.dev/gf-toggle) | [Drawer](https://docs.getwidget.dev/gf-drawer) | [Accordian](https://docs.getwidget.dev/gf-accordion) | [Alert](https://docs.getwidget.dev/gf-alert) | [Appbar](https://docs.getwidget.dev/gf-appbar) | [Searchbar](https://docs.getwidget.dev/gf-searchbar) - ## Screenshot -

- - Get Flutter - - - - -

## Demo - + ### Play Store +

+ + GetWidget playstore Demo + +

+ + ### IOS Store and Web Demo + Coming Soon + + ### An Open-Source News App Built With GetWidget & Flutter + Ionicfirebaseapp.com has been developed an open-source News Mobile App with GetWidget, So can start building app faster to get an overview and do customization. You can Download News App Souce Code here: https://www.ionicfirebaseapp.com/products/flutter-news-app ## Contributing - GetFlutter is **100% free** and **open source**. We encourage and support an active, healthy community that accepts contributions from the public – including you! - + GetWidget is **100% free** and **open source**. We encourage and support an active, healthy community that accepts contributions from the public – including you. There are a couple of ways in which you can contribute to the growing community of `getwidget`. + + * Pick up any issue marked with ["good first issue"](https://github.com/ionicfirebaseapp/getwidget/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) + * Fix a bug + * Write and improve some **documentation**. Documentation is very critical to us. We would appreciate help in adding multiple languages to our docs. * If you are a developer, feel free to check out the source and submit pull requests. * Dig into [**CONTRIBUTING.MD**](CONTRIBUTING.md), which covers submitting bugs, requesting new features, preparing your code for a pull request, etc. - * Please don't forget to **like**, **follow**, and **star our repo**! Join our growing [community](http://forum.getflutter.dev) to keep up to date with the latest Get Flutter development. - * Not sure what to work on? [**We've got lots ideas.**](https://roadmap.getflutter.dev) + * Please don't forget to **like**, **follow**, and **star our repo**! Join our growing [community](http://forum.getwidget.dev) to keep up to date with the latest GetWidget development. - ## Bugs-and-feature-requests - ## Documentation - [**Installation Guide**](https://docs.getflutter.dev) - + [**Installation Guide**](https://docs.getwidget.dev) + ### Social Media -Twitter: +Twitter: -Facebook: +Facebook: -Linkedin: +Linkedin: + +Instagram: -Instagram: - ## Copyright-and-license - Code and documentation copyright 2017-2020 the [GETFLUTTER Authors](https://www.getflutter.dev) and [PIETECH SOLUTION PVT LTD.](https://pietechsolution.com) Code released under the [MIT License]. Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/). + Code and documentation Copyright 2017-2020 the [GETWIDGET Authors](https://www.getwidget.dev) and [IONICFIREBASEAPP](https://ionicfirebaseapp.com) Code released under the [MIT License]. Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/). + +## Contributors + +### Code Contributors + +This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. + + +### Financial Contributors + +Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/getwidget/contribute)] + +#### Individuals + + + +#### Organizations + +Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/getwidget/contribute)] + + + + + + + + + + + \ No newline at end of file diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 7e689f26..2996bf04 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -38,7 +38,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "com.example.getflutter_example" + applicationId "com.ionicfirebaseapp.getwidget_example" minSdkVersion 16 targetSdkVersion 28 versionCode flutterVersionCode.toInteger() diff --git a/example/android/app/src/debug/AndroidManifest.xml b/example/android/app/src/debug/AndroidManifest.xml index b442902c..b5a7c44a 100644 --- a/example/android/app/src/debug/AndroidManifest.xml +++ b/example/android/app/src/debug/AndroidManifest.xml @@ -1,5 +1,5 @@ + package="com.ionicfirebaseapp.getwidget_example"> diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index 334d1b95..d8b8b545 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -1,5 +1,5 @@ + package="com.ionicfirebaseapp.getwidget_example"> + package="com.ionicfirebaseapp.getwidget_example"> diff --git a/example/ios/Runner/Info.plist b/example/ios/Runner/Info.plist index 2fcbb3fb..f47f58ae 100644 --- a/example/ios/Runner/Info.plist +++ b/example/ios/Runner/Info.plist @@ -11,7 +11,7 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleName - GetFlutter + GetWidget CFBundlePackageType APPL CFBundleShortVersionString diff --git a/example/lib/assets/logo.svg b/example/lib/assets/logo.svg index 06c19bb1..da2e7338 100644 --- a/example/lib/assets/logo.svg +++ b/example/lib/assets/logo.svg @@ -4,6 +4,6 @@ - Get Flutter + Get Flutter diff --git a/example/lib/main.dart b/example/lib/main.dart index 7a6b9939..cc029e6a 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -1,14 +1,14 @@ import 'package:flutter/material.dart'; import 'package:flutter_svg/flutter_svg.dart'; import 'package:url_launcher/url_launcher.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) => MaterialApp( - title: 'GetFlutter', + title: 'GetWidget', debugShowCheckedModeBanner: false, home: MyHomePage(), ); @@ -25,9 +25,9 @@ class _MyHomePageState extends State { 'https://play.google.com/store/apps/details?id=dev.getflutter.appkit'; // final String _appStoreLink = 'Coming Soon'; final String _githuAppRepoLink = - 'https://github.com/ionicfirebaseapp/getflutter-app-kit'; + 'https://github.com/ionicfirebaseapp/getwidget-app-kit'; final String _githubLibraryRepoLink = - 'https://github.com/ionicfirebaseapp/getflutter'; + 'https://github.com/ionicfirebaseapp/getwidget'; Future _launchUrl(url) async { if (await canLaunch(url)) { @@ -57,7 +57,7 @@ class _MyHomePageState extends State { padding: EdgeInsets.only(bottom: 25), child: Center( child: Text( - 'To keep library size small and code clean we manage example on different repository. which includes clear usage of each and every component that we provide in GetFlutter library. Please have a look there.', + 'To keep library size small and code clean we manage example on different repository. which includes clear usage of each and every component that we provide in GetWidget library. Please have a look there.', style: TextStyle( fontSize: 16, color: GFColors.WHITE, @@ -90,7 +90,7 @@ class _MyHomePageState extends State { padding: EdgeInsets.only(bottom: 25), child: Center( child: Text( - 'We also have same app on playstore. It shows various possibilities that you can achieve using GetFlutter library.', + 'We also have same app on playstore. It shows various possibilities that you can achieve using GetWidget library.', style: TextStyle( fontSize: 16, color: GFColors.WHITE, diff --git a/example/lib/main_temp.dart b/example/lib/main_temp.dart index b6d0e056..4f9c2780 100644 --- a/example/lib/main_temp.dart +++ b/example/lib/main_temp.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; final List imageList = [ 'https://cdn.pixabay.com/photo/2017/12/03/18/04/christmas-balls-2995437_960_720.jpg', @@ -18,12 +18,12 @@ void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) => MaterialApp( - title: 'getflutter_EXAMPLE', + title: 'GetWidget Example', theme: ThemeData( primarySwatch: Colors.blue, ), debugShowCheckedModeBanner: false, - home: const MyHomePage(title: 'getflutter_EXAMPLE'), + home: const MyHomePage(title: 'GetWidget Example'), ); } @@ -40,8 +40,6 @@ class _MyHomePageState extends State with SingleTickerProviderStateMixin { TabController tabController; final _ratingController = TextEditingController(); - double _rating = 3; - double _userRating = 4.5; @override void initState() { @@ -71,113 +69,113 @@ class _MyHomePageState extends State ]; @override - Widget build(BuildContext context) { - final Widget emptyBlock = Padding( - padding: const EdgeInsets.symmetric(horizontal: 16), - child: Row( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Container( - width: 54, - height: 46, - color: Colors.white, - ), - const SizedBox(width: 12), - Expanded( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Container( - width: double.infinity, - height: 8, - color: Colors.white, - ), - const SizedBox(height: 6), - Container( - width: MediaQuery.of(context).size.width * 0.5, - height: 8, - color: Colors.white, - ), - const SizedBox(height: 6), - Container( - width: MediaQuery.of(context).size.width * 0.25, - height: 8, - color: Colors.white, - ), - ], - ), - ) - ], - ), - ); + Widget build(BuildContext context) => + // final Widget emptyBlock = Padding( + // padding: const EdgeInsets.symmetric(horizontal: 16), + // child: Row( + // crossAxisAlignment: CrossAxisAlignment.start, + // children: [ + // Container( + // width: 54, + // height: 46, + // color: Colors.white, + // ), + // const SizedBox(width: 12), + // Expanded( + // child: Column( + // crossAxisAlignment: CrossAxisAlignment.start, + // children: [ + // Container( + // width: double.infinity, + // height: 8, + // color: Colors.white, + // ), + // const SizedBox(height: 6), + // Container( + // width: MediaQuery.of(context).size.width * 0.5, + // height: 8, + // color: Colors.white, + // ), + // const SizedBox(height: 6), + // Container( + // width: MediaQuery.of(context).size.width * 0.25, + // height: 8, + // color: Colors.white, + // ), + // ], + // ), + // ) + // ], + // ), + // ); - return Scaffold( - drawer: GFDrawer( + Scaffold( + drawer: GFDrawer( // colorFilter: new ColorFilter.mode( // Colors.teal.withOpacity(0.6), BlendMode.DARKen), // backgroundImage: NetworkImage( // "https://cdn.pixabay.com/photo/2017/12/03/18/04/christmas-balls-2995437_960_720.jpg"), - gradient: LinearGradient( - begin: Alignment.topRight, - end: Alignment.bottomLeft, - stops: const [0.1, 0.5, 0.7, 0.9], - colors: [ - Colors.teal[800], - Colors.teal[600], - Colors.teal[400], - Colors.teal[200], - ], - ), - color: Colors.greenAccent, - child: ListView( - padding: EdgeInsets.zero, - children: [ - GFDrawerHeader( - currentAccountPicture: const GFAvatar( - radius: 80, - backgroundImage: NetworkImage( - 'https://cdn.pixabay.com/photo/2017/12/03/18/04/christmas-balls-2995437_960_720.jpg'), - ), - decoration: BoxDecoration( - color: Colors.teal, - ), - otherAccountsPictures: const [ - Image( - image: NetworkImage( - 'https://cdn.pixabay.com/photo/2019/12/20/00/03/road-4707345_960_720.jpg'), - fit: BoxFit.cover, + gradient: LinearGradient( + begin: Alignment.topRight, + end: Alignment.bottomLeft, + stops: const [0.1, 0.5, 0.7, 0.9], + colors: [ + Colors.teal[800], + Colors.teal[600], + Colors.teal[400], + Colors.teal[200], + ], + ), + color: Colors.greenAccent, + child: ListView( + padding: EdgeInsets.zero, + children: [ + GFDrawerHeader( + currentAccountPicture: const GFAvatar( + radius: 80, + backgroundImage: NetworkImage( + 'https://cdn.pixabay.com/photo/2017/12/03/18/04/christmas-balls-2995437_960_720.jpg'), ), - GFAvatar( - child: Text('dcf'), - ) - ], -// closeButton: Text("Close"), - child: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: const [ - Text('user name'), - Text('user@userid.com'), + decoration: BoxDecoration( + color: Colors.teal, + ), + otherAccountsPictures: const [ + Image( + image: NetworkImage( + 'https://cdn.pixabay.com/photo/2019/12/20/00/03/road-4707345_960_720.jpg'), + fit: BoxFit.cover, + ), + GFAvatar( + child: Text('dcf'), + ) ], +// closeButton: Text("Close"), + child: Column( + mainAxisAlignment: MainAxisAlignment.start, + crossAxisAlignment: CrossAxisAlignment.start, + children: const [ + Text('user name'), + Text('user@userid.com'), + ], + ), ), - ), - const ListTile( - title: Text('Item 1'), - onTap: null, - ), - const ListTile( - title: Text('Item 2'), - onTap: null, - ), - ], + const ListTile( + title: Text('Item 1'), + onTap: null, + ), + const ListTile( + title: Text('Item 2'), + onTap: null, + ), + ], + ), ), - ), - appBar: GFAppBar( - backgroundColor: Colors.teal, + appBar: GFAppBar( + backgroundColor: Colors.teal, // centerTitle: true, // leading: GFIconButton(icon: Icon(Icons.directions_bus), onPressed: (){}), - title: const Text('UI Kit'), + title: const Text('UI Kit'), // GFSegmentTabs( // tabController: tabController, // initialIndex: 0, @@ -220,26 +218,26 @@ class _MyHomePageState extends State // fontFamily: 'OpenSansBold', // ), // ), - searchBar: true, + searchBar: true, // searchHintText: "aaaaaaa", // searchHintStyle: TextStyle(fontSize: 18.0, color: Colors.redAccent), // searchStyle: TextStyle(fontSize: 10.0, color: Colors.green), // searchBarColorTheme: Colors.greenAccent, - actions: [ + actions: [ // GFIconButton(icon: Icon(Icons.access_time), onPressed: () {}), - GFIconButton( - icon: Icon( - Icons.favorite, - color: GFColors.WHITE, + GFIconButton( + icon: Icon( + Icons.favorite, + color: GFColors.WHITE, + ), + onPressed: () {}, + type: GFButtonType.transparent, ), - onPressed: () {}, - type: GFButtonType.transparent, - ), - ], - ), + ], + ), // backgroundColor: Colors.blueGrey, - body: + body: // GFTabBarView( // height: 200.0, // controller: tabController, @@ -284,16 +282,16 @@ class _MyHomePageState extends State // ), // ) // ); - SingleChildScrollView( - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.center, - children: [ + SingleChildScrollView( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ // GFAccordion( // titleChild: Text('fgk'), // contentChild: Text('hhjk'), //// title: 'GF Accordion', -//// content: 'GetFlutter is an open source library that comes with pre-build 1000+ UI components.', +//// content: 'GetWidget is an open source library that comes with pre-build 1000+ UI components.', // collapsedIcon: Text('Show'), // expandedIcon: Text('Hide') // ), @@ -650,11 +648,11 @@ class _MyHomePageState extends State // child: Text("dszndc"), // icon: Icon(Icons.WARNING), // ), - GFButtonBadge( - onPressed: null, - text: "djvhcfdscc", - icon: Icon(Icons.label), - ), + GFButtonBadge( + onPressed: null, + text: 'test button', + icon: Icon(Icons.label), + ), // GFButton( // onPressed: null, // child: Text("gcnjd"), @@ -755,25 +753,25 @@ class _MyHomePageState extends State // icon: Icon(Icons.directions_bike), // ), - GFListTile( + GFListTile( // padding: EdgeInsets.all(30.0), // margin: EdgeInsets.all(50.0), - color: Colors.blueGrey, + color: Colors.blueGrey, // avatar: const GFAvatar( // child: Text('tb'), // ), - title: const Text('title'), + title: const Text('title'), // subTitle: const Text('subtitle'), // description: // const Text('A page view that displays the widget which '), - icon: const Icon(Icons.category), + icon: const Icon(Icons.category), // dividerColor: Colors.blue, // dividerEndIndent: 20.0, // dividerHeight: 2.0, // dividerIndent: 30.0, // dividerThickness: 5.0, // showDivider: false, - ), + ), // GFCard( // title: GFListTile( @@ -840,12 +838,12 @@ class _MyHomePageState extends State // ], // )), - // Image.asset( - // 'lib/assets/food.jpeg', - // fit: BoxFit.cover, - // color: Color(0xff0d69ff).withOpacity(1.0), - // colorBlendMode: BlendMode.softLight, - // ), + // Image.asset( + // 'lib/assets/food.jpeg', + // fit: BoxFit.cover, + // color: Color(0xff0d69ff).withOpacity(1.0), + // colorBlendMode: BlendMode.softLight, + // ), // GFCard( // content: Container( @@ -861,7 +859,7 @@ class _MyHomePageState extends State // ))), // ), - GFButtonBadge( + GFButtonBadge( // boxShadow: BoxShadow( // color: Colors.pink, // blurRadius: 2.0, @@ -869,18 +867,18 @@ class _MyHomePageState extends State // offset: Offset.zero, // ), // badgeBoxShadow: true, - onPressed: () {}, + onPressed: () {}, // position: GFPosition.start, // borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid), // borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero), - text: 'goodiesdxs', + text: 'goodiesdxs', // color: GFColors.success, - textColor: GFColors.DARK, - shape: GFButtonShape.pills, - type: GFButtonType.outline2x, + textColor: GFColors.DARK, + shape: GFButtonShape.pills, + type: GFButtonType.outline2x, // size: GFSize.small, - icon: GFBadge( - child: Text("12"), + icon: const GFBadge( + child: Text('12'), // color: GFColors.DARK, // shape: GFBadgeShape.circle, // size: GFSize.small, @@ -888,8 +886,8 @@ class _MyHomePageState extends State // borderShape: RoundedRectangleBorder(), // textColor: GFColors.WHITE, // textStyle: TextStyle(fontWeight: FontWeight.w500, fontSize: 8.0), + ), ), - ), // TabBar( // isScrollable: true, @@ -1165,37 +1163,37 @@ class _MyHomePageState extends State // ), // ), - GFCheckbox( - size: GFSize.SMALL, - activebgColor: GFColors.DANGER, - onChanged: (val) { - print('on change val $val'); - }, - value: true, - inactiveIcon: null, - ), + GFCheckbox( + size: GFSize.SMALL, + activebgColor: GFColors.DANGER, + onChanged: (val) { + print('on change val $val'); + }, + value: true, + inactiveIcon: null, + ), - GFRadioButton( - size: GFSize.SMALL, - value: true, - type: GFRadioButtonType.basic, - radioColor: GFColors.SUCCESS, + GFRadioButton( + size: GFSize.SMALL, + value: true, + type: GFRadioButtonType.basic, + radioColor: GFColors.SUCCESS, // activebgColor: GFColors.ALT, // inactivebgColor: GFColors.PRIMARY, // activeBorderColor: GFColors.DANGER, // inactiveBorderColor: GFColors.DARK, - onChanged: (val) { - print('on change val $val'); - }, - activeIcon: const Icon( - Icons.check, - size: 20, - color: GFColors.DARK, - ), + onChanged: (val) { + print('on change val $val'); + }, + activeIcon: const Icon( + Icons.check, + size: 20, + color: GFColors.DARK, + ), // inactiveIcon: const Icon(Icons.close, size: 20, color: GFColors.DARK,), // custombgColor: GFColors.SUCCESS, // groupValue: - ), + ), // const Padding( // padding: EdgeInsets.only(left: 15, top: 30), @@ -1374,71 +1372,69 @@ class _MyHomePageState extends State // ), // ), // - GFCheckboxListTile( - color: GFColors.ALT, - title: Text('title'), - subTitle: Text('subtitle'), + GFCheckboxListTile( + color: GFColors.ALT, + title: const Text('title'), + subTitle: const Text('subtitle'), // titleText: 'sdfg', // subtitleText: 'sdfg', - avatar: GFAvatar( - backgroundColor: GFColors.SUCCESS, - ), - description: Text('description'), - padding: const EdgeInsets.all(16), - margin: const EdgeInsets.all(16), - size: 24, - type: GFCheckboxType.basic, - checkColor: GFColors.WHITE, - activebgColor: GFColors.PRIMARY, - inactivebgColor: GFColors.WHITE, - activeBorderColor: GFColors.WHITE, - inactiveBorderColor: GFColors.DARK, - activeIcon: const Icon( - Icons.check, - size: 20, - color: GFColors.WHITE, - ), - custombgColor: GFColors.SUCCESS, - onChanged: (val) { - print('on change val $val'); - }, - value: true, - inactiveIcon: Icon( - Icons.close, - color: GFColors.DARK, - size: 16, + avatar: const GFAvatar( + backgroundColor: GFColors.SUCCESS, + ), + description: const Text('description'), + padding: const EdgeInsets.all(16), + margin: const EdgeInsets.all(16), + size: 24, + type: GFCheckboxType.basic, + checkColor: GFColors.WHITE, + activebgColor: GFColors.PRIMARY, + inactivebgColor: GFColors.WHITE, + activeBorderColor: GFColors.WHITE, + inactiveBorderColor: GFColors.DARK, + activeIcon: const Icon( + Icons.check, + size: 20, + color: GFColors.WHITE, + ), + custombgColor: GFColors.SUCCESS, + onChanged: (val) {}, + value: true, + inactiveIcon: const Icon( + Icons.close, + color: GFColors.DARK, + size: 16, + ), ), - ), // - GFCarousel( + GFCarousel( // initialPage: 1, - pagerSize: 12, - activeIndicator: Colors.pink, - passiveIndicator: Colors.pink.withOpacity(0.4), - viewportFraction: 1.0, + pagerSize: 12, + activeIndicator: Colors.pink, + passiveIndicator: Colors.pink.withOpacity(0.4), + viewportFraction: 1.0, // aspectRatio: 1, - autoPlay: true, - enlargeMainPage: true, - pagination: true, - items: imageList - .map((url) => Container( - padding: const EdgeInsets.only(bottom: 16), - margin: const EdgeInsets.all(12), - child: ClipRRect( - borderRadius: - const BorderRadius.all(Radius.circular(5)), - child: Image.network(url, - fit: BoxFit.cover, width: 1000), - ), - )) - .toList(), + autoPlay: true, + enlargeMainPage: true, + pagination: true, + items: imageList + .map((url) => Container( + padding: const EdgeInsets.only(bottom: 16), + margin: const EdgeInsets.all(12), + child: ClipRRect( + borderRadius: + const BorderRadius.all(Radius.circular(5)), + child: Image.network(url, + fit: BoxFit.cover, width: 1000), + ), + )) + .toList(), // onPageChanged: (int index) { // setState(() { // index; // }); // }, - ), + ), // // GFCarousel( @@ -1660,7 +1656,7 @@ class _MyHomePageState extends State // ), // GFAvatar( - // radius: 20.0, + // radius: 20.0, // maxRadius: 50, // child: Text("de"), @@ -1678,14 +1674,14 @@ class _MyHomePageState extends State // borderRadius: BorderRadius.circular(10.0), // ), - GFIconBadge( - child: GFAvatar( - backgroundColor: GFColors.SUCCESS, - ), - counterChild: const GFBadge( - text: '12', + const GFIconBadge( + child: GFAvatar( + backgroundColor: GFColors.SUCCESS, + ), + counterChild: GFBadge( + text: '12', + ), ), - ), // GFIconButton( // onPressed: () {}, @@ -1742,9 +1738,9 @@ class _MyHomePageState extends State //// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid), //// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero), // ), - ], + ], + ), ), - ), // bottomNavigationBar: GFTabBar( // length: 6, // isScrollable: true, @@ -1798,6 +1794,5 @@ class _MyHomePageState extends State //// fontFamily: 'OpenSansBold', //// ), // ), - ); - } + ); } diff --git a/example/pubspec.lock b/example/pubspec.lock index 1d77e6cb..079bd9a7 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -86,13 +86,13 @@ packages: description: flutter source: sdk version: "0.0.0" - getflutter: + getwidget: dependency: "direct main" description: path: ".." relative: true source: path - version: "1.0.9" + version: "1.1.1" image: dependency: transitive description: diff --git a/example/pubspec.yaml b/example/pubspec.yaml index cec08818..1bda3570 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -1,5 +1,5 @@ name: example -description: GetFlutter Demo app +description: GetWidget Demo app version: 1.0.0+1 @@ -9,7 +9,7 @@ environment: dependencies: flutter: sdk: flutter - getflutter: + getwidget: path: ../ cupertino_icons: ^0.1.2 flutter_svg: ^0.17.1 diff --git a/lib/components/accordian/gf_accordian.dart b/lib/components/accordian/gf_accordian.dart index 8a2fc1b9..82e0acfa 100644 --- a/lib/components/accordian/gf_accordian.dart +++ b/lib/components/accordian/gf_accordian.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; class GFAccordion extends StatefulWidget { const GFAccordion( diff --git a/lib/components/alert/gf_alert.dart b/lib/components/alert/gf_alert.dart index 80ee559a..c22306b3 100644 --- a/lib/components/alert/gf_alert.dart +++ b/lib/components/alert/gf_alert.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; class GFAlert extends StatefulWidget { /// Alert has to be wrap inside the body like [GFFloatingWidget]. See [GFFloatingWidget] diff --git a/lib/components/appbar/gf_appbar.dart b/lib/components/appbar/gf_appbar.dart index 47ecba08..d8c6e335 100644 --- a/lib/components/appbar/gf_appbar.dart +++ b/lib/components/appbar/gf_appbar.dart @@ -3,7 +3,7 @@ import 'package:flutter/rendering.dart'; import 'package:flutter/services.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter/material.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; /// An app bar consists of a toolbar and potentially other widgets, such as a /// [GFTabBar][TabBar] and a [FlexibleSpaceBar]. @@ -321,12 +321,12 @@ class _GFAppBarState extends State { IconThemeData actionsIconTheme = widget.actionsIconTheme ?? appBarTheme.actionsIconTheme ?? overallIconTheme; - TextStyle centerStyle = widget.textTheme?.headline ?? - appBarTheme.textTheme?.headline ?? - theme.primaryTextTheme.headline; - TextStyle sideStyle = widget.textTheme?.body1 ?? - appBarTheme.textTheme?.body1 ?? - theme.primaryTextTheme.body1; + TextStyle centerStyle = widget.textTheme?.headline1 ?? + appBarTheme.textTheme?.headline1 ?? + theme.primaryTextTheme.headline1; + TextStyle sideStyle = widget.textTheme?.bodyText1 ?? + appBarTheme.textTheme?.bodyText1 ?? + theme.primaryTextTheme.bodyText1; if (widget.toolbarOpacity != 1.0) { final double opacity = const Interval( diff --git a/lib/components/avatar/gf_avatar.dart b/lib/components/avatar/gf_avatar.dart index 78ae879f..320c263c 100644 --- a/lib/components/avatar/gf_avatar.dart +++ b/lib/components/avatar/gf_avatar.dart @@ -1,6 +1,6 @@ import 'package:flutter/widgets.dart'; import 'package:flutter/material.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; class GFAvatar extends StatelessWidget { /// Create Avatar of all types i,e, square, circle, standard with different sizes. @@ -87,7 +87,7 @@ class GFAvatar extends StatelessWidget { final Color foregroundColor = this.foregroundColor; assert(debugCheckHasMediaQuery(context)); final ThemeData theme = Theme.of(context); - TextStyle textStyle = theme.primaryTextTheme.subtitle.copyWith( + TextStyle textStyle = theme.primaryTextTheme.subtitle1.copyWith( color: foregroundColor, ); Color effectiveBackgroundColor = backgroundColor; diff --git a/lib/components/badge/gf_badge.dart b/lib/components/badge/gf_badge.dart index 71e7bdb1..f55cc0a4 100644 --- a/lib/components/badge/gf_badge.dart +++ b/lib/components/badge/gf_badge.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; class GFBadge extends StatefulWidget { /// Create badges of all types, check out [GFButtonBadge] for button badges and [GFIconBadge] for icon type badges diff --git a/lib/components/badge/gf_button_badge.dart b/lib/components/badge/gf_button_badge.dart index 5262b6a9..d198a622 100644 --- a/lib/components/badge/gf_button_badge.dart +++ b/lib/components/badge/gf_button_badge.dart @@ -2,7 +2,7 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter/material.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; class GFButtonBadge extends StatefulWidget { /// Create badges badges of all types. check out [GFIconButton] for icon badges, and [GFBadge] for badges diff --git a/lib/components/badge/gf_icon_badge.dart b/lib/components/badge/gf_icon_badge.dart index b3d9dfac..c0ec01d7 100644 --- a/lib/components/badge/gf_icon_badge.dart +++ b/lib/components/badge/gf_icon_badge.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; class GFIconBadge extends StatefulWidget { /// Create badges of all types, check out [GFBadge] for button badges and [GFIconBadge] for icon badges. diff --git a/lib/components/button/gf_button.dart b/lib/components/button/gf_button.dart index 3533353e..7a986ef6 100644 --- a/lib/components/button/gf_button.dart +++ b/lib/components/button/gf_button.dart @@ -4,7 +4,7 @@ //import 'package:flutter/rendering.dart'; //import 'package:flutter/widgets.dart'; //import 'package:flutter/material.dart'; -//import 'package:getflutter/getflutter.dart'; +//import 'package:getwidget/getwidget.dart'; // //class GFButton extends StatefulWidget { // /// Create buttons of all types. check out [GFIconButton] for icon buttons, and [GFBadge] for badges @@ -747,7 +747,7 @@ import 'package:flutter/gestures.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter/material.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; class GFButton extends StatefulWidget { /// Create buttons of all types. check out [GFIconButton] for icon buttons, and [GFBadge] for badges diff --git a/lib/components/button/gf_button_bar.dart b/lib/components/button/gf_button_bar.dart index eb7251cf..eb370b50 100644 --- a/lib/components/button/gf_button_bar.dart +++ b/lib/components/button/gf_button_bar.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; class GFButtonBar extends StatelessWidget { /// Create buttons bar for all types of buttons. diff --git a/lib/components/button/gf_icon_button.dart b/lib/components/button/gf_icon_button.dart index 4ff8a82d..356aabac 100644 --- a/lib/components/button/gf_icon_button.dart +++ b/lib/components/button/gf_icon_button.dart @@ -2,7 +2,7 @@ import 'dart:math' as math; import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter/material.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; class GFIconButton extends StatefulWidget { /// Create icon buttons of all types. check out [GFButton] for buttons diff --git a/lib/components/button/gf_social_button.dart b/lib/components/button/gf_social_button.dart index 3e46c015..fe077f9d 100644 --- a/lib/components/button/gf_social_button.dart +++ b/lib/components/button/gf_social_button.dart @@ -2,7 +2,7 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter/material.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; class GFSocialButton extends GFButton { /// Create buttons of all types. check out [GFIconButton] for icon buttons, and [GFBadge] for badges diff --git a/lib/components/card/gf_card.dart b/lib/components/card/gf_card.dart index 343c6b8c..7618807b 100644 --- a/lib/components/card/gf_card.dart +++ b/lib/components/card/gf_card.dart @@ -1,6 +1,6 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; /// A material design card. A card has slightly rounded corners and a shadow. /// diff --git a/lib/components/carousel/gf_carousel.dart b/lib/components/carousel/gf_carousel.dart index b7c08cd0..9f8cd410 100644 --- a/lib/components/carousel/gf_carousel.dart +++ b/lib/components/carousel/gf_carousel.dart @@ -182,7 +182,7 @@ class _GFCarouselState extends State with TickerProviderStateMixin { } Timer getPlayTimer() => Timer.periodic(widget.autoPlayInterval, (_) { - if (widget.autoPlay) { + if (widget.autoPlay && widget.items.length > 1) { widget.pageController.nextPage( duration: widget.autoPlayAnimationDuration, curve: widget.autoPlayCurve); @@ -221,7 +221,7 @@ class _GFCarouselState extends State with TickerProviderStateMixin { } void onPageSlide(int index) { - setState(() => index); + setState(() => currentSlide = index); } int currentSlide; diff --git a/lib/components/checkbox/gf_checkbox.dart b/lib/components/checkbox/gf_checkbox.dart index 29c84384..ada0aa6b 100644 --- a/lib/components/checkbox/gf_checkbox.dart +++ b/lib/components/checkbox/gf_checkbox.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; class GFCheckbox extends StatefulWidget { const GFCheckbox({ diff --git a/lib/components/checkboxListTile/gf_checkbox_list_tile.dart b/lib/components/checkboxListTile/gf_checkbox_list_tile.dart index 3237f37c..dc401b48 100644 --- a/lib/components/checkboxListTile/gf_checkbox_list_tile.dart +++ b/lib/components/checkboxListTile/gf_checkbox_list_tile.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; class GFCheckboxListTile extends StatefulWidget { const GFCheckboxListTile({ diff --git a/lib/components/drawer/gf_drawer_header.dart b/lib/components/drawer/gf_drawer_header.dart index 75e3b58c..f512c43d 100644 --- a/lib/components/drawer/gf_drawer_header.dart +++ b/lib/components/drawer/gf_drawer_header.dart @@ -1,7 +1,7 @@ import 'package:flutter/widgets.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; class GFDrawerHeaderPictures extends StatelessWidget { const GFDrawerHeaderPictures({ diff --git a/lib/components/floating_widget/gf_floating_widget.dart b/lib/components/floating_widget/gf_floating_widget.dart index 9181f3fb..c72368e4 100644 --- a/lib/components/floating_widget/gf_floating_widget.dart +++ b/lib/components/floating_widget/gf_floating_widget.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; class GFFloatingWidget extends StatefulWidget { /// Creates a Floating body can be used to display the quick messages, warning and erros. diff --git a/lib/components/list_tile/gf_list_tile.dart b/lib/components/list_tile/gf_list_tile.dart index 98d05e9d..d3bcd523 100644 --- a/lib/components/list_tile/gf_list_tile.dart +++ b/lib/components/list_tile/gf_list_tile.dart @@ -1,6 +1,6 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; class GFListTile extends StatelessWidget { /// Creates ListTile with leading, title, trailing, image widget for almost every type of ListTile design. diff --git a/lib/components/loader/gf_loader.dart b/lib/components/loader/gf_loader.dart index 265bad46..769e6426 100644 --- a/lib/components/loader/gf_loader.dart +++ b/lib/components/loader/gf_loader.dart @@ -1,6 +1,6 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; class GFLoader extends StatefulWidget { const GFLoader( diff --git a/lib/components/progress_bar/gf_progress_bar.dart b/lib/components/progress_bar/gf_progress_bar.dart index 9d40941e..cdd8c8e0 100644 --- a/lib/components/progress_bar/gf_progress_bar.dart +++ b/lib/components/progress_bar/gf_progress_bar.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:getflutter/types/gf_progress_type.dart'; +import 'package:getwidget/getwidget.dart'; class GFProgressBar extends StatefulWidget { GFProgressBar({ diff --git a/lib/components/radiobutton/gf_radio_button.dart b/lib/components/radiobutton/gf_radio_button.dart index 05babac2..350215d1 100644 --- a/lib/components/radiobutton/gf_radio_button.dart +++ b/lib/components/radiobutton/gf_radio_button.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; class GFRadioButton extends StatefulWidget { const GFRadioButton( diff --git a/lib/components/rating/gf_rating.dart b/lib/components/rating/gf_rating.dart index 8bcaf210..2af1517b 100644 --- a/lib/components/rating/gf_rating.dart +++ b/lib/components/rating/gf_rating.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; typedef RatingChangeCallback = void Function(double rating); diff --git a/lib/components/search_bar/gf_search_bar.dart b/lib/components/search_bar/gf_search_bar.dart index 784427b0..78b84281 100644 --- a/lib/components/search_bar/gf_search_bar.dart +++ b/lib/components/search_bar/gf_search_bar.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; typedef QueryListItemBuilder = Widget Function(T item); typedef OnItemSelected = void Function(T item); diff --git a/lib/components/shimmer/gf_shimmer.dart b/lib/components/shimmer/gf_shimmer.dart index 16b811b3..623134d8 100644 --- a/lib/components/shimmer/gf_shimmer.dart +++ b/lib/components/shimmer/gf_shimmer.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; class GFShimmer extends StatefulWidget { const GFShimmer({ diff --git a/lib/components/tabs/gf_segment_tabs.dart b/lib/components/tabs/gf_segment_tabs.dart index 78670264..1f57d51b 100644 --- a/lib/components/tabs/gf_segment_tabs.dart +++ b/lib/components/tabs/gf_segment_tabs.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter/widgets.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; /// Creates pills like structured tab bar. See [GFTabBar] /// [GFSegmentTabs] are best used as an alternative for [GFTabBar]. diff --git a/lib/components/tabs/gf_tabbar.dart b/lib/components/tabs/gf_tabbar.dart index 47254880..24b22655 100644 --- a/lib/components/tabs/gf_tabbar.dart +++ b/lib/components/tabs/gf_tabbar.dart @@ -2,7 +2,7 @@ import 'package:flutter/gestures.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; import 'package:flutter/foundation.dart'; /// A material design widget that displays a horizontal row of tabs. diff --git a/lib/components/tabs/gf_tabbar_view.dart b/lib/components/tabs/gf_tabbar_view.dart index 6864d15d..b09ae692 100644 --- a/lib/components/tabs/gf_tabbar_view.dart +++ b/lib/components/tabs/gf_tabbar_view.dart @@ -3,7 +3,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter/gestures.dart' show DragStartBehavior; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; /// A page view that displays the widget which corresponds to the currently /// selected tab. diff --git a/lib/components/tabs/gf_tabs.dart b/lib/components/tabs/gf_tabs.dart index d9856d06..033f8e73 100644 --- a/lib/components/tabs/gf_tabs.dart +++ b/lib/components/tabs/gf_tabs.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter/widgets.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; class GFTabs extends StatefulWidget { /// Creates a default tab for the given child widget. diff --git a/lib/components/toast/gf_toast.dart b/lib/components/toast/gf_toast.dart index 7cc8b0fe..99309d9d 100644 --- a/lib/components/toast/gf_toast.dart +++ b/lib/components/toast/gf_toast.dart @@ -1,7 +1,7 @@ import 'dart:async'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; class GFToast extends StatefulWidget { ///Creates [GFToast] that can be used to display quick warning or error messages. diff --git a/lib/components/toggle/gf_toggle.dart b/lib/components/toggle/gf_toggle.dart index ad48059d..1fee30c1 100644 --- a/lib/components/toggle/gf_toggle.dart +++ b/lib/components/toggle/gf_toggle.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; /// A toggle button allows the user to change a setting between two states. /// diff --git a/lib/components/typography/gf_typography.dart b/lib/components/typography/gf_typography.dart index 6c4ad056..9c005587 100644 --- a/lib/components/typography/gf_typography.dart +++ b/lib/components/typography/gf_typography.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:getflutter/getflutter.dart'; +import 'package:getwidget/getwidget.dart'; class GFTypography extends StatelessWidget { /// Creates simple title with underline. Style of title can be changed using [GFTypographyType] diff --git a/lib/getflutter.dart b/lib/getflutter.dart deleted file mode 100644 index 019ba629..00000000 --- a/lib/getflutter.dart +++ /dev/null @@ -1,57 +0,0 @@ -library getflutter; - -//exports components -export 'package:getflutter/components/alert/gf_alert.dart'; -export 'package:getflutter/components/accordian/gf_accordian.dart'; -export 'package:getflutter/components/appbar/gf_appbar.dart'; -export 'package:getflutter/components/avatar/gf_avatar.dart'; -export 'package:getflutter/components/badge/gf_badge.dart'; -export 'package:getflutter/components/badge/gf_button_badge.dart'; -export 'package:getflutter/components/badge/gf_icon_badge.dart'; -export 'package:getflutter/components/button/gf_button.dart'; -export 'package:getflutter/components/button/gf_icon_button.dart'; -export 'package:getflutter/components/button/gf_social_button.dart'; -export 'package:getflutter/components/button/gf_button_bar.dart'; -export 'package:getflutter/components/card/gf_card.dart'; -export 'package:getflutter/components/carousel/gf_carousel.dart'; -export 'package:getflutter/components/carousel/gf_items_carousel.dart'; -export 'package:getflutter/components/drawer/gf_drawer.dart'; -export 'package:getflutter/components/drawer/gf_drawer_header.dart'; -export 'package:getflutter/components/image/gf_image_overlay.dart'; -export 'package:getflutter/components/list_tile/gf_list_tile.dart'; -export 'package:getflutter/components/search_bar/gf_search_bar.dart'; -export 'package:getflutter/components/tabs/gf_tabbar.dart'; -export 'package:getflutter/components/tabs/gf_tabbar_view.dart'; -export 'package:getflutter/components/tabs/gf_tabs.dart'; -export 'package:getflutter/components/tabs/gf_segment_tabs.dart'; -export 'package:getflutter/components/floating_widget/gf_floating_widget.dart'; -export 'package:getflutter/components/toast/gf_toast.dart'; -export 'package:getflutter/components/toggle/gf_toggle.dart'; -export 'package:getflutter/components/typography/gf_typography.dart'; -export 'package:getflutter/components/rating/gf_rating.dart'; -export 'package:getflutter/components/slidable/gf_slidable.dart'; -export 'package:getflutter/components/shimmer/gf_shimmer.dart'; -export 'package:getflutter/components/loader/gf_loader.dart'; -export 'package:getflutter/components/progress_bar/gf_progress_bar.dart'; -export 'package:getflutter/components/checkbox/gf_checkbox.dart'; -export 'package:getflutter/components/checkboxListTile/gf_checkbox_list_tile.dart'; -export 'package:getflutter/components/radiobutton/gf_radio_button.dart'; - -// exports shape, color, position, size, types, direction -export 'colors/gf_color.dart'; -export 'direction/gf_shimmer_direction.dart'; -export 'position/gf_position.dart'; -export 'shape/gf_avatar_shape.dart'; -export 'shape/gf_badge_shape.dart'; -export 'shape/gf_button_shape.dart'; -export 'shape/gf_icon_button_shape.dart'; -export 'size/gf_size.dart'; -export 'types/gf_alert_type.dart'; -export 'types/gf_button_type.dart'; -export 'types/gf_checkbox_type.dart'; -export 'types/gf_loader_type.dart'; -export 'types/gf_progress_type.dart'; -export 'types/gf_radio_type.dart'; -export 'types/gf_toast_type.dart'; -export 'types/gf_toggle_type.dart'; -export 'types/gf_typography_type.dart'; diff --git a/lib/getwidget.dart b/lib/getwidget.dart new file mode 100644 index 00000000..ed827ee1 --- /dev/null +++ b/lib/getwidget.dart @@ -0,0 +1,57 @@ +library getwidget; + +//exports components +export 'package:getwidget/components/alert/gf_alert.dart'; +export 'package:getwidget/components/accordian/gf_accordian.dart'; +export 'package:getwidget/components/appbar/gf_appbar.dart'; +export 'package:getwidget/components/avatar/gf_avatar.dart'; +export 'package:getwidget/components/badge/gf_badge.dart'; +export 'package:getwidget/components/badge/gf_button_badge.dart'; +export 'package:getwidget/components/badge/gf_icon_badge.dart'; +export 'package:getwidget/components/button/gf_button.dart'; +export 'package:getwidget/components/button/gf_icon_button.dart'; +export 'package:getwidget/components/button/gf_social_button.dart'; +export 'package:getwidget/components/button/gf_button_bar.dart'; +export 'package:getwidget/components/card/gf_card.dart'; +export 'package:getwidget/components/carousel/gf_carousel.dart'; +export 'package:getwidget/components/carousel/gf_items_carousel.dart'; +export 'package:getwidget/components/drawer/gf_drawer.dart'; +export 'package:getwidget/components/drawer/gf_drawer_header.dart'; +export 'package:getwidget/components/image/gf_image_overlay.dart'; +export 'package:getwidget/components/list_tile/gf_list_tile.dart'; +export 'package:getwidget/components/search_bar/gf_search_bar.dart'; +export 'package:getwidget/components/tabs/gf_tabbar.dart'; +export 'package:getwidget/components/tabs/gf_tabbar_view.dart'; +export 'package:getwidget/components/tabs/gf_tabs.dart'; +export 'package:getwidget/components/tabs/gf_segment_tabs.dart'; +export 'package:getwidget/components/floating_widget/gf_floating_widget.dart'; +export 'package:getwidget/components/toast/gf_toast.dart'; +export 'package:getwidget/components/toggle/gf_toggle.dart'; +export 'package:getwidget/components/typography/gf_typography.dart'; +export 'package:getwidget/components/rating/gf_rating.dart'; +export 'package:getwidget/components/slidable/gf_slidable.dart'; +export 'package:getwidget/components/shimmer/gf_shimmer.dart'; +export 'package:getwidget/components/loader/gf_loader.dart'; +export 'package:getwidget/components/progress_bar/gf_progress_bar.dart'; +export 'package:getwidget/components/checkbox/gf_checkbox.dart'; +export 'package:getwidget/components/checkboxListTile/gf_checkbox_list_tile.dart'; +export 'package:getwidget/components/radiobutton/gf_radio_button.dart'; + +// exports shape, color, position, size, types, direction +export 'colors/gf_color.dart'; +export 'direction/gf_shimmer_direction.dart'; +export 'position/gf_position.dart'; +export 'shape/gf_avatar_shape.dart'; +export 'shape/gf_badge_shape.dart'; +export 'shape/gf_button_shape.dart'; +export 'shape/gf_icon_button_shape.dart'; +export 'size/gf_size.dart'; +export 'types/gf_alert_type.dart'; +export 'types/gf_button_type.dart'; +export 'types/gf_checkbox_type.dart'; +export 'types/gf_loader_type.dart'; +export 'types/gf_progress_type.dart'; +export 'types/gf_radio_type.dart'; +export 'types/gf_toast_type.dart'; +export 'types/gf_toggle_type.dart'; +export 'types/gf_typography_type.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index 13cc2fbe..8c778268 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,11 +1,9 @@ -name: getflutter -description: GetFlutter is open source libraries that come with pre-build 1000+ UI components. It makes development faster & more enjoyable. You can customize the component as per your need. -version: 1.0.9 -#author: GetFlutter -homepage: https://github.com/ionicfirebaseapp/getflutter +name: getwidget +description: GetWidget is open source libraries that come with pre-build 1000+ UI components. It makes development faster & more enjoyable. You can customize the component as per your need. +version: 1.1.1 +homepage: https://github.com/ionicfirebaseapp/getwidget environment: - # sdk: ">=2.1.0 <3.0.0" sdk: ">=2.2.2 <3.0.0" dependencies: diff --git a/test/getflutter_test.dart b/test/getflutter_test.dart index 640ba905..a8155e2f 100644 --- a/test/getflutter_test.dart +++ b/test/getflutter_test.dart @@ -1,7 +1,5 @@ import 'package:flutter_test/flutter_test.dart'; void main() { - test('Simple test', () { - print('Test passed'); - }); + test('Simple test', () {}); }