feat: fontSize in blog post

This commit is contained in:
Alex
2024-12-09 16:26:48 +03:00
parent 9ba0e68e79
commit f073a7b921
3 changed files with 10 additions and 42 deletions

View File

@@ -75,6 +75,7 @@ class _BlogPostWidgetState extends State<BlogPostWidget> {
height: 1,
color: Colors.black87,
fontWeight: FontWeight.w500,
fontSize: 16,
),
),
const SizedBox(height: 4),
@@ -83,6 +84,7 @@ class _BlogPostWidgetState extends State<BlogPostWidget> {
style: TextStyle(
height: 1,
color: Colors.black45,
fontSize: 14,
),
),
],
@@ -102,6 +104,7 @@ class _BlogPostWidgetState extends State<BlogPostWidget> {
child: Text(
state.feedBlogPostList[widget.index].title,
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w600,
color: Colors.black87,
),
@@ -117,6 +120,7 @@ class _BlogPostWidgetState extends State<BlogPostWidget> {
: state.feedBlogPostList[widget.index].description,
style: {
"*": Style(
fontSize: FontSize(16),
color: Colors.black87,
),
},

View File

@@ -16,8 +16,8 @@ dependencies:
flutter_secure_storage: ^9.2.2
flutter_bloc: ^8.1.6
cached_network_image: ^3.4.1
flutter_svg: ^2.0.14
equatable: ^2.0.5
flutter_svg: ^2.0.16
equatable: ^2.0.7
freezed_annotation: ^2.4.4
json_annotation: ^4.9.0
validators: ^3.0.0
@@ -26,7 +26,7 @@ dependencies:
flutter_form_builder: ^9.5.0
image_picker: ^1.1.2
flutter_typeahead: ^5.2.0
go_router: ^14.6.0
go_router: ^14.6.2
keyboard_dismisser: ^3.0.0
retrofit: ^4.4.1
get_it: ^8.0.2
@@ -39,8 +39,8 @@ dependencies:
badges: ^3.1.2
google_fonts: ^6.2.1
location: ^7.0.1
syncfusion_flutter_charts: ^27.2.2
syncfusion_flutter_gauges: ^27.2.2
syncfusion_flutter_charts: ^27.2.5
syncfusion_flutter_gauges: ^27.2.5
table_calendar: ^3.1.2
flutter_keyboard_visibility: ^6.0.0
share_plus: ^10.1.2
@@ -65,6 +65,7 @@ dev_dependencies:
freezed: ^2.5.7
json_serializable: ^6.9.0
retrofit_generator: ^9.1.5
mockito: ^5.4.4
flutter_test:
sdk: flutter

View File

@@ -1,37 +0,0 @@
import 'package:eatvio_app/features/auth/auth_screen/auth_screen.dart';
import 'package:eatvio_app/features/auth/auth_screen/bloc/auth_bloc.dart';
import 'package:eatvio_app/features/auth/auth_screen/models/auth_model.dart';
import 'package:eatvio_app/generated/l10n.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
group('AuthScreen', () {
testWidgets('renders AuthScreen with initial state', (WidgetTester tester) async {
final authBloc = AuthBloc(AuthState(authModelObj: AuthModel()));
await tester.pumpWidget(
MaterialApp(
localizationsDelegates: const [
S.delegate,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
supportedLocales: S.delegate.supportedLocales,
home: BlocProvider<AuthBloc>(
create: (context) => authBloc,
child: Builder(
builder: (context) {
return AuthScreen();
},
),
),
),
);
});
});
}