| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- import 'package:flutter/cupertino.dart';
- import 'package:flutter/material.dart';
- import 'package:flutter_screenutil/flutter_screenutil.dart';
- import '../resource/colors.gen.dart';
- class Styles {
- Styles._();
- static Decoration getActivateButtonDecoration(double radius) {
- return ShapeDecoration(
- gradient: LinearGradient(
- colors: [const Color(0xFF7D46FC), const Color(0xFFBC87FF)],
- ),
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(radius),
- ),
- );
- }
- static Decoration getInactiveButtonDecoration(double radius) {
- return ShapeDecoration(
- color: const Color(0xFF7D46FC).withAlpha(100),
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(radius),
- ),
- );
- }
- static TextStyle getTextStyleBlack204W400(double? sp) {
- return TextStyle(
- color: Colors.black.withAlpha(204),
- fontSize: sp,
- fontWeight: FontWeight.w400,
- );
- }
- static TextStyle getTextStyleBlack204W500(double? sp) {
- return TextStyle(
- color: Colors.black.withAlpha(204),
- fontSize: sp,
- fontWeight: FontWeight.w500,
- );
- }
- static TextStyle getTextStyleWhiteW500(double? sp) {
- return TextStyle(
- color: Colors.white,
- fontSize: sp,
- fontWeight: FontWeight.w500,
- );
- }
- static TextStyle getTextStyleWhiteW400(double? sp) {
- return TextStyle(
- color: Colors.white,
- fontSize: sp,
- fontWeight: FontWeight.w400,
- );
- }
- }
|