From 75c194c59723aac5976d5193dea6a971bd0c5992 Mon Sep 17 00:00:00 2001 From: Nico Vidoni Date: Tue, 10 Dec 2024 18:24:14 +0100 Subject: [PATCH] docs: update docs on notexistent button variants --- lib/src/button/sbb_icon_button.dart | 19 ++++++------------- lib/src/button/sbb_icon_form_button.dart | 8 +++----- lib/src/button/sbb_primary_button.dart | 8 +++----- 3 files changed, 12 insertions(+), 23 deletions(-) diff --git a/lib/src/button/sbb_icon_button.dart b/lib/src/button/sbb_icon_button.dart index 16c9738..2886f04 100644 --- a/lib/src/button/sbb_icon_button.dart +++ b/lib/src/button/sbb_icon_button.dart @@ -63,7 +63,6 @@ class SBBIconButtonLarge extends StatelessWidget { /// /// The [icon] parameter must not be null. Make sure to use small icons /// ([sbbIconSizeSmall] - 24x24). -/// /// If [onPressed] callback is null, then the button will be disabled. /// /// See also: @@ -93,17 +92,14 @@ class SBBIconButtonSmall extends StatelessWidget { } } -/// Small negative variant of the SBB Icon Button. Use according to -/// documentation. +/// Negative variant of the [SBBIconButtonSmall]. +/// +/// THIS IS NOT IN THE MOBILE DESIGN SPECS. Can be removed in a future version. /// /// The [icon] parameter must not be null. Make sure to use small icons /// ([sbbIconSizeSmall] - 24x24). /// /// If [onPressed] callback is null, then the button will be disabled. -/// -/// See also: -/// -/// * class SBBIconButtonSmallNegative extends StatelessWidget { const SBBIconButtonSmallNegative({ super.key, @@ -128,17 +124,14 @@ class SBBIconButtonSmallNegative extends StatelessWidget { } } -/// Small borderless variant of the SBB Icon Button. Use according to -/// documentation. +/// Borderless variant of the [SBBIconButtonSmall]. +/// +/// THIS IS NOT IN THE MOBILE DESIGN SPECS. Can be removed in a future version. /// /// The [icon] parameter must not be null. Make sure to use small icons /// ([sbbIconSizeSmall] - 24x24). /// /// If [onPressed] callback is null, then the button will be disabled. -/// -/// See also: -/// -/// * class SBBIconButtonSmallBorderless extends StatelessWidget { const SBBIconButtonSmallBorderless({ super.key, diff --git a/lib/src/button/sbb_icon_form_button.dart b/lib/src/button/sbb_icon_form_button.dart index 7f271ad..f91d73d 100644 --- a/lib/src/button/sbb_icon_form_button.dart +++ b/lib/src/button/sbb_icon_form_button.dart @@ -2,16 +2,14 @@ import 'package:flutter/material.dart'; import '../../sbb_design_system_mobile.dart'; -/// The SBB Icon Form Button. Use according to documentation. +/// The SBB Icon Form Button. +/// +/// THIS IS NOT IN THE MOBILE DESIGN SPECS. Can be removed in a future version. /// /// The [icon] parameter must not be null. Make sure to use small icons /// ([sbbIconSizeSmall] - 24x24). /// /// If [onPressed] callback is null, then the button will be disabled. -/// -/// See also: -/// -/// * class SBBIconFormButton extends StatelessWidget { const SBBIconFormButton({ super.key, diff --git a/lib/src/button/sbb_primary_button.dart b/lib/src/button/sbb_primary_button.dart index e11eabe..55b6edb 100644 --- a/lib/src/button/sbb_primary_button.dart +++ b/lib/src/button/sbb_primary_button.dart @@ -45,7 +45,9 @@ class SBBPrimaryButton extends StatelessWidget { } } -/// Negative variant of the SBB Primary Button. Use according to documentation. +/// Negative variant of the [SBBPrimaryButton]. +/// +/// THIS IS NOT IN THE MOBILE DESIGN SPECS. Can be removed in a future version. /// /// The [label] parameter must not be null. /// @@ -53,10 +55,6 @@ class SBBPrimaryButton extends StatelessWidget { /// inside the button and the [onPressed] callback will be ignored. /// /// If [onPressed] callback is null, then the button will be disabled. -/// -/// See also: -/// -/// * class SBBPrimaryButtonNegative extends StatelessWidget { const SBBPrimaryButtonNegative({ super.key,