Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## 1.1.3 - 2020-07-30

### Fixed
* [GFAppBar] clear button does not fire onChanged #149
* [GFCarousel] initialPage Not Honored if Page Indicators Enabled. #144
* [GFCarousel] timer of the autoPlay is not disposed #143
* [GFCarousel] active page indicator is not being updated without "onPageChanged" #139
* [GFTabBar] Docs say about isScrollable which is not supported #132

### Update
* couple of compoenents (WIP)
- GFCheckboxTile
- GFRadioTile



## 1.1.1 - 2020-06-26

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ we have launched the library with the following components :
* 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.getwidget.dev) to keep up to date with the latest GetWidget development.
* Please don't forget to **like**, **follow**, and **star our repo**! Join our growing [community](https://forum.getwidget.dev) to keep up to date with the latest GetWidget development.



Expand Down
7 changes: 4 additions & 3 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ linter:
# conflicts with the Flutter convention of putting {Key key} first and {Widget child} last
# - always_put_required_named_parameters_first
- always_require_non_null_named_parameters
# - annotate_overrides
- annotate_overrides
- avoid_annotating_with_dynamic
- avoid_as
- avoid_bool_literals_in_conditional_expressions
Expand All @@ -33,7 +33,7 @@ linter:
- avoid_relative_lib_imports
- avoid_renaming_method_parameters
- avoid_return_types_on_setters
# - avoid_returning_null
- avoid_returning_null
- avoid_returning_null_for_void
- avoid_returning_this
- avoid_setters_without_getters
Expand All @@ -49,6 +49,7 @@ linter:
# - cascade_invocations
- close_sinks
- comment_references
# required for couple of GetWidget pattern
# - constant_identifier_names
- control_flow_in_finally
- curly_braces_in_flow_control_structures
Expand All @@ -75,7 +76,7 @@ linter:
# - omit_local_variable_types
- one_member_abstracts
- only_throw_errors
# in some places it is required to override fileds
# in some places it is required to override fields
# - overridden_fields
- package_api_docs
- package_names
Expand Down
242 changes: 133 additions & 109 deletions example/lib/main_temp.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class _MyHomePageState extends State<MyHomePage>
with SingleTickerProviderStateMixin {
TabController tabController;
final _ratingController = TextEditingController();
bool check = false;

@override
void initState() {
Expand Down Expand Up @@ -1146,55 +1147,110 @@ class _MyHomePageState extends State<MyHomePage>
// .toList(),
// ),

// Container(
// alignment: Alignment.center,
// child: GFCheckbox(
// size: GFSize.SMALL,
// onChanged: (val) {
// print('on change val $val');
// },
// value: true,
// type: GFCheckboxType.circle,
//// checkColor: GFColors.DANGER,
////activebgColor: Colors.green,
////inactivebgColor: Colors.white,
////activeBorderColor: Colors.red,
//// backgroundColor: Colors.green,
// ),
// ),
CheckboxListTile(
title: Text("title text"),
value: check,
onChanged: (newValue) {
setState(() {
check = newValue;
});
},
controlAffinity: ListTileControlAffinity.leading,
),

GFCheckbox(
size: GFSize.SMALL,
activebgColor: GFColors.DANGER,
GFCheckboxListTile(
color: Colors.blueGrey.withOpacity(0.3),
title: const Text('title'),
subTitle: const Text('subtitle'),
// 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: Colors.white,
// activebgColor: Colors.red,
// inactivebgColor: Colors.red.withOpacity(0.3),
// activeBorderColor: Colors.red,
// inactiveBorderColor: Colors.red.withOpacity(0.3),
// custombgColor: GFColors.SUCCESS,
value: check,
onChanged: (val) {
print('on change val $val');
setState(() {
check = val;
});
},
value: true,
inactiveIcon: null,
// inactiveIcon: const Icon(
// Icons.close,
// color: GFColors.DARK,
// size: 16,
// ),
// activeIcon: const Icon(
// Icons.check,
// size: 20,
// color: GFColors.WHITE,
// ),
),

Checkbox(
value: check,
onChanged: null,
// (val){
// print('on change val $val');
// }
),

GFRadioButton(
GFCheckbox(
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');
activebgColor: GFColors.DANGER,
onChanged:
// null,
(val) {
setState(() {
check = 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:
value: check,
inactiveIcon: null,
),

// GFCheckbox(
// size: GFSize.SMALL,
// onChanged: (val) {
// print('on change val $val');
// },
// value: true,
// type: GFCheckboxType.circle,
// checkColor: GFColors.DANGER,
//// activebgColor: Colors.green,
//// inactivebgColor: Colors.white,
//// activeBorderColor: Colors.red,
// ),
//
// 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,
// ),
//// inactiveIcon: const Icon(Icons.close, size: 20, color: GFColors.DARK,),
//// custombgColor: GFColors.SUCCESS,
//// groupValue:
// ),

// const Padding(
// padding: EdgeInsets.only(left: 15, top: 30),
// child: GFTypography(
Expand Down Expand Up @@ -1371,70 +1427,38 @@ class _MyHomePageState extends State<MyHomePage>
// ],
// ),
// ),

//
GFCheckboxListTile(
color: GFColors.ALT,
title: const Text('title'),
subTitle: const Text('subtitle'),
// titleText: 'sdfg',
// subtitleText: 'sdfg',
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(
// initialPage: 1,
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(),
// onPageChanged: (int index) {
// setState(() {
// index;
// });
// },
),
// GFCarousel(
//// initialPage: 1,
// 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(),
//// onPageChanged: (int index) {
//// setState(() {
//// index;
//// });
//// },
// ),

//
// GFCarousel(
Expand Down Expand Up @@ -1674,14 +1698,14 @@ class _MyHomePageState extends State<MyHomePage>
// borderRadius: BorderRadius.circular(10.0),
// ),

const GFIconBadge(
child: GFAvatar(
backgroundColor: GFColors.SUCCESS,
),
counterChild: GFBadge(
text: '12',
),
),
// const GFIconBadge(
// child: GFAvatar(
// backgroundColor: GFColors.SUCCESS,
// ),
// counterChild: GFBadge(
// text: '12',
// ),
// ),

// GFIconButton(
// onPressed: () {},
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.1.1"
version: "1.1.3"
image:
dependency: transitive
description:
Expand Down
6 changes: 3 additions & 3 deletions lib/components/appbar/gf_appbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,9 @@ class _GFAppBarState extends State<GFAppBar> {
IconThemeData actionsIconTheme = widget.actionsIconTheme ??
appBarTheme.actionsIconTheme ??
overallIconTheme;
TextStyle centerStyle = widget.textTheme?.headline1 ??
appBarTheme.textTheme?.headline1 ??
theme.primaryTextTheme.headline1;
TextStyle centerStyle = widget.textTheme?.headline5 ??
appBarTheme.textTheme?.headline5 ??
theme.primaryTextTheme.headline5;
TextStyle sideStyle = widget.textTheme?.bodyText1 ??
appBarTheme.textTheme?.bodyText1 ??
theme.primaryTextTheme.bodyText1;
Expand Down
2 changes: 1 addition & 1 deletion lib/components/button/gf_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@ class _GFButtonState extends State<GFButton> {
} else if (widget.fullWidthButton == true) {
return MediaQuery.of(context).size.width;
} else {
return null;
return MediaQuery.of(context).size.width * 0.88;
}
}

Expand Down
Loading