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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class _NetworkSelectionScreenState extends State<NetworkSelectionScreen> {
}
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: () {
Expand Down Expand Up @@ -126,7 +126,6 @@ class _NetworkSelectionScreenState extends State<NetworkSelectionScreen> {
child: Center(
child: ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: Theme.of(context).colorScheme.primary,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(24.0),
),
Expand All @@ -143,7 +142,6 @@ class _NetworkSelectionScreenState extends State<NetworkSelectionScreen> {
},
child: Text(
"My network isn't showing up",
style: TextStyle(color: Theme.of(context).colorScheme.onPrimary, fontWeight: FontWeight.w500),
),
),
),
Expand Down
1 change: 0 additions & 1 deletion lib/src/screens/shared_widgets/pill_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
13 changes: 2 additions & 11 deletions lib/src/screens/shared_widgets/primary_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
);
}
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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/

Expand Down