textstyles changes
parent
e12af90539
commit
47512e86d0
|
@ -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<TransportView> {
|
|||
: 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<TransportView> {
|
|||
: 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<TransportView> {
|
|||
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<TransportView> {
|
|||
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<TransportView> {
|
|||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
_commonText(
|
||||
TextView(
|
||||
text:
|
||||
"Plant",
|
||||
),
|
||||
SizedBox(height: 8),
|
||||
|
@ -236,8 +232,8 @@ class _TransportViewState extends State<TransportView> {
|
|||
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<TransportView> {
|
|||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
_commonText(
|
||||
TextView(
|
||||
text:
|
||||
"Product Name",
|
||||
),
|
||||
SizedBox(height: 8),
|
||||
|
@ -289,7 +286,8 @@ class _TransportViewState extends State<TransportView> {
|
|||
crossAxisAlignment:
|
||||
CrossAxisAlignment.start,
|
||||
children: [
|
||||
_commonText(
|
||||
TextView(
|
||||
text:
|
||||
"Plant",
|
||||
),
|
||||
SizedBox(height: 8),
|
||||
|
@ -315,7 +313,8 @@ class _TransportViewState extends State<TransportView> {
|
|||
crossAxisAlignment:
|
||||
CrossAxisAlignment.start,
|
||||
children: [
|
||||
_commonText(
|
||||
TextView(
|
||||
text:
|
||||
"Transaction Type",
|
||||
),
|
||||
SizedBox(height: 8),
|
||||
|
@ -338,7 +337,8 @@ class _TransportViewState extends State<TransportView> {
|
|||
Expanded(
|
||||
child: Column(
|
||||
children: [
|
||||
_commonText(
|
||||
TextView(
|
||||
text:
|
||||
"" ,
|
||||
),
|
||||
SizedBox(height: 8),
|
||||
|
@ -389,12 +389,6 @@ class _TransportViewState extends State<TransportView> {
|
|||
],
|
||||
);
|
||||
}
|
||||
_commonText(String title) {
|
||||
return Text(
|
||||
title,
|
||||
style: TextStyle(
|
||||
fontSize: 13, color: Colors.black, fontWeight: FontWeight.w900),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue