Explorar o código

made BrandTitle component

ashilkn %!s(int64=2) %!d(string=hai) anos
pai
achega
53413c0b14
Modificáronse 1 ficheiros con 27 adicións e 0 borrados
  1. 27 0
      lib/ui/components/brand_title_widget.dart

+ 27 - 0
lib/ui/components/brand_title_widget.dart

@@ -0,0 +1,27 @@
+import 'package:flutter/material.dart';
+
+enum SizeVarient {
+  small(21),
+  medium(24),
+  large(28);
+
+  final double size;
+  const SizeVarient(this.size);
+}
+
+class BrandTitleWidget extends StatelessWidget {
+  final SizeVarient size;
+  const BrandTitleWidget({required this.size, Key? key}) : super(key: key);
+
+  @override
+  Widget build(BuildContext context) {
+    return Text(
+      "ente",
+      style: TextStyle(
+        fontWeight: FontWeight.bold,
+        fontFamily: 'Montserrat',
+        fontSize: SizeVarient.medium.size,
+      ),
+    );
+  }
+}