styled_button 0.0.1
styled_button: ^0.0.1 copied to clipboard
A custom styled button
styled_button #
A customizable Flutter package for creating beautiful, ready-to-use social login buttons with provider icons.
🚀 Installation #
Add this to your pubspec.yaml:
dependencies:
styled_button: <latest_version>
Then run:
flutter pub get
📂 Add Assets #
Make sure to include the assets used by this package:
flutter:
assets:
- packages/styled_button/assets/
📦 Import #
import 'package:styled_button/styled_button.dart';
💡 Usage Example #
StyledButton(
submit: () {
print('Google login pressed');
},
provider: AuthButtonProvider.google,
text: 'Continue with Google',
)
🛠 Customization Options #
You can customize the button with the following parameters:
text: Text to displaybuttonColor: Background color of the buttontextColor: Color of the textborderColor: Border colorborderRadius: Roundness of the cornersborderWidth: Thickness of the bordericonSide: Position of the icon (IconSide.leftorIconSide.right)customLogoPath: Use your own icon if needediconSize: Size of the icontextSize: Font size of the textgradient: Gradient backgroundtextStyle: CustomTextStyle
🔌 Supported Providers #
AuthButtonProvider.google
AuthButtonProvider.facebook
AuthButtonProvider.twitter
AuthButtonProvider.apple
AuthButtonProvider.github
AuthButtonProvider.linkedin
AuthButtonProvider.microsoft
AuthButtonProvider.instagram
AuthButtonProvider.discord
AuthButtonProvider.phone