diff --git a/CHANGELOG.md b/CHANGELOG.md index d9b8506a..946c306c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog + +## 1.0.0-dev.4 - 2020-01-16 + +### Fixed +* ListTile re-implemeted. + ## 1.0.0-dev.3 - 2020-01-15 ### Fixed diff --git a/example/lib/main.dart b/example/lib/main.dart index e9e2d481..4cfbcf93 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -173,8 +173,6 @@ class _MyHomePageState extends State mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: [ - - GFCard( content: Column( children: [ @@ -188,7 +186,7 @@ class _MyHomePageState extends State GFToast( text: 'Happy New Year', button: GFButton( - onPressed: (){ + onPressed: () { print("dfr"); }, text: 'OK', @@ -200,48 +198,50 @@ class _MyHomePageState extends State ), ), - GFCard( - content: Column( - children: [ - GFTypography( - text: 'Floating Toast', - type: GFTypographyType.typo6, - ), - GFFloatingWidget( - verticalPosition: 80, - child: showToast? GFToast( - width: 300, - text: 'Happy New Year', - button: GFButton( - onPressed: (){ - print("df"); - }, - text: 'OK', - type: GFType.outline, - color: GFColor.warning, - ), - ):Container(), - body: Column( - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - Container( - alignment: Alignment.center, - child: GFButton(onPressed: (){ - setState(() { - showToast = !showToast; - }); - }, - text: 'Click to View the toast', - type: GFType.outline, - color: GFColor.warning, - ), - ) - ], - ) - ) - ], + GFCard( + content: Column( + children: [ + GFTypography( + text: 'Floating Toast', + type: GFTypographyType.typo6, + ), + GFFloatingWidget( + verticalPosition: 80, + child: showToast + ? GFToast( + width: 300, + text: 'Happy New Year', + button: GFButton( + onPressed: () { + print("df"); + }, + text: 'OK', + type: GFType.outline, + color: GFColor.warning, + ), + ) + : Container(), + body: Column( + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + Container( + alignment: Alignment.center, + child: GFButton( + onPressed: () { + setState(() { + showToast = !showToast; + }); + }, + text: 'Click to View the toast', + type: GFType.outline, + color: GFColor.warning, + ), + ) + ], + )) + ], + ), ), - ), // Container( // height: 130.0, @@ -258,8 +258,6 @@ class _MyHomePageState extends State // ), // - - // GFCard( // content: Column( // children: [ @@ -337,20 +335,47 @@ class _MyHomePageState extends State // ), // ), - GFButtonBar( - alignment: WrapAlignment.spaceEvenly, - children: [ - GFButton(onPressed: null, child: Text("dshsc"), icon: Icon(Icons.access_time),), - GFButton(onPressed: null, child: Text("dszndc"),icon: Icon(Icons.warning),), - GFButtonBadge(onPressed: null, text: "djvhcfdscc",icon: Icon(Icons.label),), - GFButton(onPressed: null, child: Text("gcnjd"),), - GFButton(onPressed: null, child: Text("dsqdsc"), icon: Icon(Icons.favorite),), - GFButton(onPressed: null, child: Text("gcd"),), - GFButton(onPressed: null, child: Text("dascdsc"),), - GFButton(onPressed: null, child: Text("gtgcd"),), - - ], - ), + GFButtonBar( + alignment: WrapAlignment.spaceEvenly, + children: [ + GFButton( + onPressed: null, + child: Text("dshsc"), + icon: Icon(Icons.access_time), + ), + GFButton( + onPressed: null, + child: Text("dszndc"), + icon: Icon(Icons.warning), + ), + GFButtonBadge( + onPressed: null, + text: "djvhcfdscc", + icon: Icon(Icons.label), + ), + GFButton( + onPressed: null, + child: Text("gcnjd"), + ), + GFButton( + onPressed: null, + child: Text("dsqdsc"), + icon: Icon(Icons.favorite), + ), + GFButton( + onPressed: null, + child: Text("gcd"), + ), + GFButton( + onPressed: null, + child: Text("dascdsc"), + ), + GFButton( + onPressed: null, + child: Text("gtgcd"), + ), + ], + ), // GFCard( // content: Column( @@ -581,7 +606,7 @@ class _MyHomePageState extends State //// textStyle: TextStyle(fontWeight: FontWeight.w500, fontSize: 8.0), // ), text: 'goodies', - onPressed: (){}, + onPressed: () {}, // textColor: GFColor.danger, // icon: Icon(Icons.access_alarms), // hoverColor: GFColor.dark, @@ -667,7 +692,6 @@ class _MyHomePageState extends State // ] // ), - // GFItemsCarousel( // rowCount: 3, // children: imageList.map( diff --git a/example/pubspec.lock b/example/pubspec.lock index ab9c5288..6e03b0fd 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -80,7 +80,7 @@ packages: path: ".." relative: true source: path - version: "1.0.0-dev.3" + version: "1.0.0-dev.4" image: dependency: transitive description: diff --git a/lib/components/appbar/gf_appbar.dart b/lib/components/appbar/gf_appbar.dart index c3cfb533..aefd4a91 100644 --- a/lib/components/appbar/gf_appbar.dart +++ b/lib/components/appbar/gf_appbar.dart @@ -198,6 +198,7 @@ class GFAppBar extends StatefulWidget implements PreferredSizeWidget { assert(theme.platform != null); switch (theme.platform) { case TargetPlatform.android: + case TargetPlatform.macOS: case TargetPlatform.fuchsia: return false; case TargetPlatform.iOS: @@ -289,6 +290,7 @@ class _GFAppBarState extends State { bool namesRoute; switch (theme.platform) { case TargetPlatform.android: + case TargetPlatform.macOS: case TargetPlatform.fuchsia: namesRoute = true; break; diff --git a/lib/components/button/gf_button_bar.dart b/lib/components/button/gf_button_bar.dart index dbde7520..b8b0ef33 100644 --- a/lib/components/button/gf_button_bar.dart +++ b/lib/components/button/gf_button_bar.dart @@ -22,7 +22,7 @@ class GFButtonBar extends StatelessWidget { /// The empty space that surrounds the buttonBar. Default's to padding.zero final EdgeInsetsGeometry padding; - + /// The direction to use as the main axis. /// /// For example, if [direction] is [Axis.horizontal], the default, the @@ -155,7 +155,6 @@ class GFButtonBar extends StatelessWidget { /// [verticalDirection] must not be null. final VerticalDirection verticalDirection; - /// The buttons to arrange horizontally. /// Typically [RaisedButton] or [GFButton] or [GFIconButton] widgets. final List children; @@ -171,7 +170,7 @@ class GFButtonBar extends StatelessWidget { runAlignment: runAlignment, runSpacing: runSpacing, crossAxisAlignment: crossAxisAlignment, - textDirection : textDirection, + textDirection: textDirection, verticalDirection: verticalDirection, children: children.map((Widget child) { return child; diff --git a/lib/components/drawer/gf_drawer.dart b/lib/components/drawer/gf_drawer.dart index 2b3d919a..93f88674 100644 --- a/lib/components/drawer/gf_drawer.dart +++ b/lib/components/drawer/gf_drawer.dart @@ -114,6 +114,7 @@ class GFDrawer extends StatelessWidget { label = semanticLabel; break; case TargetPlatform.android: + case TargetPlatform.macOS: case TargetPlatform.fuchsia: label = semanticLabel ?? MaterialLocalizations.of(context)?.drawerLabel; } diff --git a/lib/components/tabs/gf_tabBar.dart b/lib/components/tabs/gf_tabBar.dart index ef78c7db..bf9cda40 100644 --- a/lib/components/tabs/gf_tabBar.dart +++ b/lib/components/tabs/gf_tabBar.dart @@ -162,7 +162,6 @@ class GFTabBar extends StatefulWidget { class _GFTabBarState extends State { @override Widget build(BuildContext context) { - return Container( height: widget.tabBarHeight == null ? MediaQuery.of(context).size.height * 0.1 diff --git a/lib/components/toast/gf_floating_widget.dart b/lib/components/toast/gf_floating_widget.dart index 8da5e39f..8afd436e 100644 --- a/lib/components/toast/gf_floating_widget.dart +++ b/lib/components/toast/gf_floating_widget.dart @@ -40,15 +40,18 @@ class _GFFloatingWidgetState extends State { child: widget.body ?? Container(), ), Positioned( - top: widget.verticalPosition != null - ? widget.verticalPosition + top: + widget.verticalPosition != null ? widget.verticalPosition : 0.0, + left: widget.horizontalPosition != null + ? widget.horizontalPosition + : 0.0, + right: widget.horizontalPosition != null + ? widget.horizontalPosition : 0.0, - left: widget.horizontalPosition != null ? widget.horizontalPosition : 0.0, - right: widget.horizontalPosition != null ? widget.horizontalPosition : 0.0, child: Container( - width: MediaQuery.of(context).size.width, - child: widget.child ?? Container(), - )), + width: MediaQuery.of(context).size.width, + child: widget.child ?? Container(), + )), ], ); } diff --git a/pubspec.yaml b/pubspec.yaml index 69833baf..16635bf8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,11 +1,11 @@ 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.0-dev.3 +version: 1.0.0-dev.4 #author: GetFlutter homepage: https://github.com/ionicfirebaseapp/getflutter environment: -# sdk: ">=2.1.0 <3.0.0" + # sdk: ">=2.1.0 <3.0.0" sdk: ">=2.2.2 <3.0.0" dependencies: