From 47512e86d0aca3f1d27e65c5b2a36a46503d0dc6 Mon Sep 17 00:00:00 2001 From: "pratibha.chaudhary" Date: Fri, 31 Jan 2025 13:04:40 +0530 Subject: [PATCH] textstyles changes --- .../transporter/view/transport_view.dart | 64 +++++++++---------- 1 file changed, 29 insertions(+), 35 deletions(-) diff --git a/lib/feature/presentation/screens/transporter/view/transport_view.dart b/lib/feature/presentation/screens/transporter/view/transport_view.dart index edee80a..3d3b067 100644 --- a/lib/feature/presentation/screens/transporter/view/transport_view.dart +++ b/lib/feature/presentation/screens/transporter/view/transport_view.dart @@ -4,6 +4,7 @@ import 'package:shayog/components/common/custom_drop_down.dart'; import 'package:shayog/components/styles/textStyles.dart'; import 'package:shayog/feature/presentation/screens/transporter/view/sub_views/invoice_management_screen.dart'; import 'package:shayog/feature/presentation/screens/transporter/view/sub_views/report_screen.dart'; +import 'package:shayog/feature/presentation/widgets/text_view.dart'; import '../../../../../../components/common/common_btn.dart'; @@ -66,13 +67,11 @@ class _TransportViewState extends State { : ctrl.tabs[index].image), ), ), - Text( - ctrl.tabs[index].title ?? "", + TextView( + text: ctrl.tabs[index].title ?? "", textAlign: TextAlign.center, - style: TextStyle( - fontSize: 10, - color: Colors.white, - fontWeight: FontWeight.w900), + style: 10.txtBoldWhite, + ) ], ), @@ -139,12 +138,11 @@ class _TransportViewState extends State { : AppColors.primaryClr, width: 3))), child: Center( - child: Text( + child: TextView( + text: ctrl.userTabs[index].title ?? "", - style: TextStyle( - fontSize: 12, - fontWeight: FontWeight.w900, - color: Colors.white), + style: 12.txtBoldWhite, + ), ), ), @@ -165,10 +163,8 @@ class _TransportViewState extends State { padding: const EdgeInsets.all(8.0), child: Text( AppStrings.refresh, - style: TextStyle( - color: AppColors.white, - fontSize: 12, - fontWeight: FontWeight.bold), + style: 12.txtBoldWhite, + ), ), Obx(() => @@ -184,12 +180,11 @@ class _TransportViewState extends State { visible: ctrl.selectedUser.value >= 1, child: Padding( padding: const EdgeInsets.all(8.0), - child: Text( - AppStrings.filter, - style: TextStyle( - color: AppColors.white, - fontSize: 12, - fontWeight: FontWeight.bold), + child: TextView( + text:AppStrings.filter, + style: 12.txtBoldWhite, + + ), ), ), @@ -213,7 +208,8 @@ class _TransportViewState extends State { mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start, children: [ - _commonText( + TextView( + text: "Plant", ), SizedBox(height: 8), @@ -236,8 +232,8 @@ class _TransportViewState extends State { mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start, children: [ - _commonText( - "Freight Bill No.", + TextView( + text: "Freight Bill No.", ), SizedBox(height: 8), CustomDropdown( @@ -259,7 +255,8 @@ class _TransportViewState extends State { mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start, children: [ - _commonText( + TextView( + text: "Product Name", ), SizedBox(height: 8), @@ -289,7 +286,8 @@ class _TransportViewState extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ - _commonText( + TextView( + text: "Plant", ), SizedBox(height: 8), @@ -315,7 +313,8 @@ class _TransportViewState extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ - _commonText( + TextView( + text: "Transaction Type", ), SizedBox(height: 8), @@ -338,7 +337,8 @@ class _TransportViewState extends State { Expanded( child: Column( children: [ - _commonText( + TextView( + text: "" , ), SizedBox(height: 8), @@ -389,12 +389,6 @@ class _TransportViewState extends State { ], ); } - _commonText(String title) { - return Text( - title, - style: TextStyle( - fontSize: 13, color: Colors.black, fontWeight: FontWeight.w900), - ); - } + }