diff --git a/lib/ui/components/buttons/buttons.dart b/lib/ui/components/buttons/buttons.dart deleted file mode 100644 index 49e0bb07..00000000 --- a/lib/ui/components/buttons/buttons.dart +++ /dev/null @@ -1,2 +0,0 @@ -export 'brand_button.dart'; -export 'sp_brand_button.dart'; diff --git a/lib/ui/components/buttons/sp_brand_button.dart b/lib/ui/components/buttons/sp_brand_button.dart deleted file mode 100644 index 948ee505..00000000 --- a/lib/ui/components/buttons/sp_brand_button.dart +++ /dev/null @@ -1,28 +0,0 @@ -import 'package:flutter/material.dart'; - -class SPBrandButton extends StatelessWidget { - const SPBrandButton({ - required this.child, - required this.onPressed, - super.key, - }); - - SPBrandButton.text({ - required final String title, - required this.onPressed, - super.key, - }) : child = Text(title); - - final Widget child; - final VoidCallback onPressed; - - @override - Widget build(final BuildContext context) => FilledButton( - // TODO(misterfourtytwo): move button styles to theme configuration - style: const ButtonStyle( - minimumSize: WidgetStatePropertyAll(Size.fromHeight(48)), - ), - onPressed: onPressed, - child: child, - ); -} diff --git a/lib/ui/pages/onboarding/views/onboarding_view.dart b/lib/ui/pages/onboarding/views/onboarding_view.dart index b36f3faf..46ff1078 100644 --- a/lib/ui/pages/onboarding/views/onboarding_view.dart +++ b/lib/ui/pages/onboarding/views/onboarding_view.dart @@ -1,6 +1,6 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; -import 'package:selfprivacy/ui/components/buttons/buttons.dart'; +import 'package:selfprivacy/ui/components/buttons/brand_button.dart'; // base widget for onboarding view class OnboardingView extends StatelessWidget { @@ -41,8 +41,8 @@ class OnboardingView extends StatelessWidget { Padding( padding: const EdgeInsets.symmetric(horizontal: 15) + const EdgeInsets.only(bottom: 30), - child: SPBrandButton.text( - title: buttonTitle.tr(), + child: BrandButton.filled( + text: buttonTitle.tr(), onPressed: onProceed, ), ),