sprint-1 #1

Merged
user3 merged 19 commits from sprint-1 into main 2025-05-26 14:34:28 +00:00
6 changed files with 148 additions and 23 deletions
Showing only changes of commit cf56c58d60 - Show all commits

View File

@ -10,11 +10,7 @@ class MainApp extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return const MaterialApp( return const MaterialApp(
home: Scaffold( home: Scaffold(body: Center(child: Text('Hello World!'))),
body: Center(
child: Text('Hello World!'),
),
),
); );
} }
} }

View File

@ -184,6 +184,13 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.7.4" version: "0.7.4"
ui_kit:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "0.0.1"
vector_math: vector_math:
dependency: transitive dependency: transitive
description: description:

View File

@ -9,8 +9,8 @@ environment:
dependencies: dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
ui_kit: ui_kit:
path: .. path: ..
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:

View File

@ -1,3 +1,131 @@
import 'package:flutter/painting.dart'; import 'package:flutter/painting.dart';
import 'package:ui_kit/colors.dart';
import 'package:ui_kit/utils.dart';
final title1Semibold = TextStyle(); final title1Semibold = TextStyle(
fontFamily: 'Roboto',
fontSize: 24,
color: blackColor,
fontWeight: FontWeight.w600,
letterSpacing: letterSpacing(24, 0.33),
);
final title1ExtraBold = TextStyle(
fontFamily: 'Roboto',
fontSize: 24,
color: blackColor,
fontWeight: FontWeight.w800,
letterSpacing: letterSpacing(24, 0.33),
);
final title2Regular = TextStyle(
fontFamily: 'Roboto',
fontSize: 20,
color: blackColor,
fontWeight: FontWeight.w400,
letterSpacing: letterSpacing(20, 0.38),
);
final title2Semibold = TextStyle(
fontFamily: 'Roboto',
fontSize: 20,
color: blackColor,
fontWeight: FontWeight.w600,
letterSpacing: letterSpacing(20, 0.38),
);
final title2ExtraBold = TextStyle(
fontFamily: 'Roboto',
fontSize: 20,
color: blackColor,
fontWeight: FontWeight.w600,
letterSpacing: letterSpacing(20, 0.38),
);
final title3Regular = TextStyle(
fontFamily: 'Roboto',
fontSize: 17,
color: blackColor,
fontWeight: FontWeight.w400,
letterSpacing: letterSpacing(17, 0),
);
final title3Medium = TextStyle(
fontFamily: 'Roboto',
fontSize: 17,
color: blackColor,
fontWeight: FontWeight.w500,
letterSpacing: letterSpacing(17, 0),
);
final title3Semibold = TextStyle(
fontFamily: 'Roboto',
fontSize: 17,
color: blackColor,
fontWeight: FontWeight.w600,
letterSpacing: letterSpacing(17, 0),
);
final headlineRegular = TextStyle(
fontFamily: 'Roboto',
fontSize: 16,
color: blackColor,
fontWeight: FontWeight.w400,
letterSpacing: letterSpacing(16, -0.32),
);
final headlineMedium = TextStyle(
fontFamily: 'Roboto',
fontSize: 16,
color: blackColor,
fontWeight: FontWeight.w500,
letterSpacing: letterSpacing(16, -0.32),
);
final textRegular = TextStyle(
fontFamily: 'Roboto',
fontSize: 15,
color: blackColor,
fontWeight: FontWeight.w400,
letterSpacing: letterSpacing(16, 0),
);
final textMedium = TextStyle(
fontFamily: 'Roboto',
fontSize: 15,
color: blackColor,
fontWeight: FontWeight.w500,
letterSpacing: letterSpacing(16, 0),
);
final captionRegular = TextStyle(
fontFamily: 'Roboto',
fontSize: 14,
color: blackColor,
fontWeight: FontWeight.w400,
letterSpacing: letterSpacing(16, 0),
);
final captionSemibold = TextStyle(
fontFamily: 'Roboto',
fontSize: 14,
color: blackColor,
fontWeight: FontWeight.w600,
letterSpacing: letterSpacing(16, 0),
);
final caption2Regular = TextStyle(
fontFamily: 'Roboto',
fontSize: 12,
color: blackColor,
fontWeight: FontWeight.w400,
letterSpacing: letterSpacing(16, 0),
);
final caption2Bold = TextStyle(
fontFamily: 'Roboto',
fontSize: 12,
color: blackColor,
fontWeight: FontWeight.w700,
letterSpacing: letterSpacing(16, 0),
);

3
lib/utils.dart Normal file
View File

@ -0,0 +1,3 @@
// ignore_for_file: prefer_function_declarations_over_variables
final letterSpacing = (fontSize, percent) => fontSize * percent / 100;

View File

@ -19,20 +19,11 @@ dev_dependencies:
flutter: flutter:
# To add assets to your package, add an assets section, like this: assets:
# assets: - assets/
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
# fonts: fonts:
# - family: Schyler - family: Roboto
# fonts: fonts:
# - asset: fonts/Schyler-Regular.ttf - asset: assets/robotoFlex.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700