feat: product view wip
This commit is contained in:
@@ -3,11 +3,13 @@ import 'package:flutter/cupertino.dart';
|
||||
|
||||
class TextTitle extends StatelessWidget {
|
||||
final String title;
|
||||
final Color color;
|
||||
final Color? color;
|
||||
final double? fontSize;
|
||||
const TextTitle({
|
||||
Key? key,
|
||||
required this.title,
|
||||
required this.color,
|
||||
this.color,
|
||||
this.fontSize,
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
@@ -15,9 +17,9 @@ class TextTitle extends StatelessWidget {
|
||||
return Text(
|
||||
title,
|
||||
style: TextStyle(
|
||||
fontSize: 20,
|
||||
fontSize: fontSize ?? 20,
|
||||
fontWeight: FontWeight.w700,
|
||||
color: color,
|
||||
color: color ?? ColorPalette.slate800,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user