| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- 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 getTextStyleWhiteW500(double? sp) {
- return TextStyle(
- color: Colors.white,
- fontSize: sp,
- fontWeight: FontWeight.w500,
- );
- }
- }
|