diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e0dd85..c3c034c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## 0.0.17 +- Follow up to "Update colors to be non-hardcoded" by @jckras in https://github.com/viamrobotics/viam_flutter_hotspot_provisioning_widget/pull/48 ## 0.0.16 - Update colors to be non-hardcoded by @jckras in https://github.com/viamrobotics/viam_flutter_hotspot_provisioning_widget/pull/46 - [APP-9720] [Hotspot prov widget] remove the "done" button on the setting up device screen by @jckras in https://github.com/viamrobotics/viam_flutter_hotspot_provisioning_widget/pull/44 diff --git a/lib/src/screens/network_selection.dart/widgets/network_selection_screen.dart b/lib/src/screens/network_selection.dart/widgets/network_selection_screen.dart index 44a4f67..20d308b 100644 --- a/lib/src/screens/network_selection.dart/widgets/network_selection_screen.dart +++ b/lib/src/screens/network_selection.dart/widgets/network_selection_screen.dart @@ -43,7 +43,7 @@ class _NetworkSelectionScreenState extends State { } if (widget.viewModel.machineVisibleNetworks.isEmpty) { return NoContentWidget( - icon: Icon(Icons.error, color: Theme.of(context).colorScheme.error), + icon: Icon(Icons.error, color: Theme.of(context).colorScheme.error), buttons: [ FilledButton( onPressed: () { @@ -126,7 +126,6 @@ class _NetworkSelectionScreenState extends State { child: Center( child: ElevatedButton( style: ElevatedButton.styleFrom( - backgroundColor: Theme.of(context).colorScheme.primary, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(24.0), ), @@ -143,7 +142,6 @@ class _NetworkSelectionScreenState extends State { }, child: Text( "My network isn't showing up", - style: TextStyle(color: Theme.of(context).colorScheme.onPrimary, fontWeight: FontWeight.w500), ), ), ), diff --git a/lib/src/screens/shared_widgets/pill_button.dart b/lib/src/screens/shared_widgets/pill_button.dart index 77b72b3..63ec90f 100644 --- a/lib/src/screens/shared_widgets/pill_button.dart +++ b/lib/src/screens/shared_widgets/pill_button.dart @@ -19,7 +19,6 @@ class PillButton extends StatelessWidget { return TextButton( style: ButtonStyle( shape: WidgetStatePropertyAll(RoundedRectangleBorder(borderRadius: BorderRadius.circular(20.0))), - backgroundColor: WidgetStatePropertyAll(enabled == null || !enabled! ? Theme.of(context).disabledColor : Theme.of(context).colorScheme.primary), ), onPressed: onPressed, child: Row( diff --git a/lib/src/screens/shared_widgets/primary_button.dart b/lib/src/screens/shared_widgets/primary_button.dart index 54c0e9f..ae0da43 100644 --- a/lib/src/screens/shared_widgets/primary_button.dart +++ b/lib/src/screens/shared_widgets/primary_button.dart @@ -16,22 +16,13 @@ class PrimaryButton extends StatelessWidget { Widget build(BuildContext context) { return FilledButton( onPressed: (isLoading || onPressed == null) ? null : onPressed, - style: OutlinedButton.styleFrom(backgroundColor: Theme.of(context).colorScheme.primary), child: isLoading ? SizedBox( width: 20, height: 20, - child: CircularProgressIndicator.adaptive( - backgroundColor: Theme.of(context).colorScheme.onPrimary, - ), + child: CircularProgressIndicator.adaptive(), ) - : Text( - text, - style: TextStyle( - fontWeight: FontWeight.w500, - color: onPressed != null ? Theme.of(context).colorScheme.onPrimary : Theme.of(context).disabledColor, - ), - ), + : Text(text), ); } } diff --git a/pubspec.yaml b/pubspec.yaml index 462453c..a1ecf79 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: viam_flutter_hotspot_provisioning_widget description: "A Viam Flutter Hotspot Provisioning Widget." -version: 0.0.16 +version: 0.0.17 repository: https://github.com/viamrobotics/viam_flutter_hotspot_provisioning_widget homepage: https://www.viam.com/