mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
updated text theme
This commit is contained in:
@ -173,14 +173,13 @@ class CreateSpaceDialogState extends State<CreateSpaceDialog> {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
style: const TextStyle(color: Colors.black),
|
style: Theme.of(context).textTheme.bodyMedium,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
hintText: 'Please enter the name',
|
hintText: 'Please enter the name',
|
||||||
hintStyle: const TextStyle(
|
hintStyle: Theme.of(context)
|
||||||
fontSize: 14,
|
.textTheme
|
||||||
color: ColorsManager.lightGrayColor,
|
.bodyMedium!
|
||||||
fontWeight: FontWeight.w400,
|
.copyWith(color: ColorsManager.lightGrayColor),
|
||||||
),
|
|
||||||
filled: true,
|
filled: true,
|
||||||
fillColor: ColorsManager.boxColor,
|
fillColor: ColorsManager.boxColor,
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
@ -253,7 +252,10 @@ class CreateSpaceDialogState extends State<CreateSpaceDialog> {
|
|||||||
Chip(
|
Chip(
|
||||||
label: Text(
|
label: Text(
|
||||||
selectedSpaceModel?.modelName ?? '',
|
selectedSpaceModel?.modelName ?? '',
|
||||||
style: const TextStyle(
|
style: Theme.of(context)
|
||||||
|
.textTheme
|
||||||
|
.bodyMedium!
|
||||||
|
.copyWith(
|
||||||
color: ColorsManager.spaceColor),
|
color: ColorsManager.spaceColor),
|
||||||
),
|
),
|
||||||
backgroundColor: ColorsManager.whiteColors,
|
backgroundColor: ColorsManager.whiteColors,
|
||||||
@ -287,25 +289,25 @@ class CreateSpaceDialogState extends State<CreateSpaceDialog> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 25),
|
const SizedBox(height: 25),
|
||||||
const Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
const Expanded(
|
||||||
child: Divider(
|
child: Divider(
|
||||||
color: ColorsManager.neutralGray,
|
color: ColorsManager.neutralGray,
|
||||||
thickness: 1.0,
|
thickness: 1.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 6.0),
|
padding: const EdgeInsets.symmetric(horizontal: 6.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'OR',
|
'OR',
|
||||||
style: TextStyle(
|
style: Theme.of(context)
|
||||||
color: Colors.black,
|
.textTheme
|
||||||
fontWeight: FontWeight.bold,
|
.bodyMedium
|
||||||
|
?.copyWith(fontWeight: FontWeight.bold),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
const Expanded(
|
||||||
Expanded(
|
|
||||||
child: Divider(
|
child: Divider(
|
||||||
color: ColorsManager.neutralGray,
|
color: ColorsManager.neutralGray,
|
||||||
thickness: 1.0,
|
thickness: 1.0,
|
||||||
@ -418,9 +420,12 @@ class CreateSpaceDialogState extends State<CreateSpaceDialog> {
|
|||||||
),
|
),
|
||||||
label: Text(
|
label: Text(
|
||||||
'x${entry.value}', // Show count
|
'x${entry.value}', // Show count
|
||||||
style: const TextStyle(
|
style: Theme.of(context)
|
||||||
color: ColorsManager.spaceColor,
|
.textTheme
|
||||||
),
|
.bodySmall
|
||||||
|
?.copyWith(
|
||||||
|
color: ColorsManager
|
||||||
|
.spaceColor),
|
||||||
),
|
),
|
||||||
backgroundColor:
|
backgroundColor:
|
||||||
ColorsManager.whiteColors,
|
ColorsManager.whiteColors,
|
||||||
|
@ -20,8 +20,7 @@ class SpaceWidget extends StatelessWidget {
|
|||||||
top: position.dy,
|
top: position.dy,
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
child:
|
child: Container(
|
||||||
Container(
|
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8.0),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: ColorsManager.whiteColors,
|
color: ColorsManager.whiteColors,
|
||||||
@ -39,11 +38,10 @@ class SpaceWidget extends StatelessWidget {
|
|||||||
children: [
|
children: [
|
||||||
const Icon(Icons.location_on, color: ColorsManager.spaceColor),
|
const Icon(Icons.location_on, color: ColorsManager.spaceColor),
|
||||||
const SizedBox(width: 8),
|
const SizedBox(width: 8),
|
||||||
Text(name, style: const TextStyle(fontSize: 16)),
|
Text(name, style: Theme.of(context).textTheme.bodyMedium),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -97,21 +97,22 @@ class AssignTagDialog extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
rows: state.tags.isEmpty
|
rows: state.tags.isEmpty
|
||||||
? [
|
? [
|
||||||
const DataRow(cells: [
|
DataRow(cells: [
|
||||||
DataCell(
|
DataCell(
|
||||||
Center(
|
Center(
|
||||||
child: Text(
|
child: Text('No Data Available',
|
||||||
'No Data Available',
|
style: Theme.of(context)
|
||||||
style: TextStyle(
|
.textTheme
|
||||||
fontSize: 14,
|
.bodyMedium
|
||||||
color: ColorsManager.lightGrayColor,
|
?.copyWith(
|
||||||
|
color: ColorsManager
|
||||||
|
.lightGrayColor,
|
||||||
|
)),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
const DataCell(SizedBox()),
|
||||||
),
|
const DataCell(SizedBox()),
|
||||||
DataCell(SizedBox()),
|
const DataCell(SizedBox()),
|
||||||
DataCell(SizedBox()),
|
|
||||||
DataCell(SizedBox()),
|
|
||||||
])
|
])
|
||||||
]
|
]
|
||||||
: List.generate(state.tags.length, (index) {
|
: List.generate(state.tags.length, (index) {
|
||||||
@ -213,10 +214,11 @@ class AssignTagDialog extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (state.errorMessage != null)
|
if (state.errorMessage != null)
|
||||||
Text(
|
Text(state.errorMessage!,
|
||||||
state.errorMessage!,
|
style: Theme.of(context)
|
||||||
style: const TextStyle(color: ColorsManager.warningRed),
|
.textTheme
|
||||||
),
|
.bodySmall
|
||||||
|
?.copyWith(color: ColorsManager.warningRed)),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -112,22 +112,22 @@ class AssignTagModelsDialog extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
rows: state.tags.isEmpty
|
rows: state.tags.isEmpty
|
||||||
? [
|
? [
|
||||||
const DataRow(cells: [
|
DataRow(cells: [
|
||||||
DataCell(
|
DataCell(
|
||||||
Center(
|
Center(
|
||||||
child: Text(
|
child: Text('No Devices Available',
|
||||||
'No Data Available',
|
style: Theme.of(context)
|
||||||
style: TextStyle(
|
.textTheme
|
||||||
fontSize: 14,
|
.bodyMedium
|
||||||
color:
|
?.copyWith(
|
||||||
ColorsManager.lightGrayColor,
|
color: ColorsManager
|
||||||
|
.lightGrayColor,
|
||||||
|
)),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
const DataCell(SizedBox()),
|
||||||
),
|
const DataCell(SizedBox()),
|
||||||
DataCell(SizedBox()),
|
const DataCell(SizedBox()),
|
||||||
DataCell(SizedBox()),
|
|
||||||
DataCell(SizedBox()),
|
|
||||||
])
|
])
|
||||||
]
|
]
|
||||||
: List.generate(state.tags.length, (index) {
|
: List.generate(state.tags.length, (index) {
|
||||||
@ -233,11 +233,11 @@ class AssignTagModelsDialog extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (state.errorMessage != null)
|
if (state.errorMessage != null)
|
||||||
Text(
|
Text(state.errorMessage!,
|
||||||
state.errorMessage!,
|
style: Theme.of(context)
|
||||||
style: const TextStyle(
|
.textTheme
|
||||||
color: ColorsManager.warningRed),
|
.bodySmall
|
||||||
),
|
?.copyWith(color: ColorsManager.warningRed)),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -77,9 +77,7 @@ class CreateCommunityDialog extends StatelessWidget {
|
|||||||
.read<CommunityDialogBloc>()
|
.read<CommunityDialogBloc>()
|
||||||
.add(ValidateCommunityNameEvent(value));
|
.add(ValidateCommunityNameEvent(value));
|
||||||
},
|
},
|
||||||
style: const TextStyle(
|
style: Theme.of(context).textTheme.bodyMedium,
|
||||||
color: ColorsManager.blackColor,
|
|
||||||
),
|
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
hintText: 'Please enter the community name',
|
hintText: 'Please enter the community name',
|
||||||
filled: true,
|
filled: true,
|
||||||
|
@ -102,12 +102,13 @@ class CreateSubSpaceDialog extends StatelessWidget {
|
|||||||
duplicateIndices.indexOf(index) != 0;
|
duplicateIndices.indexOf(index) != 0;
|
||||||
|
|
||||||
return Chip(
|
return Chip(
|
||||||
label: Text(
|
label: Text(subSpace.subspaceName,
|
||||||
subSpace.subspaceName,
|
style: Theme.of(context)
|
||||||
style: const TextStyle(
|
.textTheme
|
||||||
color: ColorsManager.spaceColor,
|
.bodyMedium
|
||||||
),
|
?.copyWith(
|
||||||
),
|
color:
|
||||||
|
ColorsManager.spaceColor)),
|
||||||
backgroundColor: ColorsManager.whiteColors,
|
backgroundColor: ColorsManager.whiteColors,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(10),
|
borderRadius: BorderRadius.circular(10),
|
||||||
@ -149,9 +150,12 @@ class CreateSubSpaceDialog extends StatelessWidget {
|
|||||||
hintText: state.subSpaces.isEmpty
|
hintText: state.subSpaces.isEmpty
|
||||||
? 'Please enter the name'
|
? 'Please enter the name'
|
||||||
: null,
|
: null,
|
||||||
hintStyle: const TextStyle(
|
hintStyle: Theme.of(context)
|
||||||
color: ColorsManager.lightGrayColor),
|
.textTheme
|
||||||
),
|
.bodySmall
|
||||||
|
?.copyWith(
|
||||||
|
color: ColorsManager
|
||||||
|
.lightGrayColor)),
|
||||||
onSubmitted: (value) {
|
onSubmitted: (value) {
|
||||||
if (value.trim().isNotEmpty) {
|
if (value.trim().isNotEmpty) {
|
||||||
context.read<SubSpaceBloc>().add(
|
context.read<SubSpaceBloc>().add(
|
||||||
@ -161,9 +165,8 @@ class CreateSubSpaceDialog extends StatelessWidget {
|
|||||||
textController.clear();
|
textController.clear();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
style: const TextStyle(
|
style:
|
||||||
color: ColorsManager.blackColor),
|
Theme.of(context).textTheme.bodyMedium),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@ -171,13 +174,13 @@ class CreateSubSpaceDialog extends StatelessWidget {
|
|||||||
if (state.errorMessage.isNotEmpty)
|
if (state.errorMessage.isNotEmpty)
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.only(top: 8.0),
|
padding: const EdgeInsets.only(top: 8.0),
|
||||||
child: Text(
|
child: Text(state.errorMessage,
|
||||||
state.errorMessage,
|
style: Theme.of(context)
|
||||||
style: const TextStyle(
|
.textTheme
|
||||||
|
.bodySmall
|
||||||
|
?.copyWith(
|
||||||
color: ColorsManager.warningRed,
|
color: ColorsManager.warningRed,
|
||||||
fontSize: 12,
|
)),
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
Row(
|
Row(
|
||||||
|
@ -94,12 +94,13 @@ class CreateSubSpaceModelDialog extends StatelessWidget {
|
|||||||
duplicateIndices.indexOf(index) != 0;
|
duplicateIndices.indexOf(index) != 0;
|
||||||
|
|
||||||
return Chip(
|
return Chip(
|
||||||
label: Text(
|
label: Text(subSpace.subspaceName,
|
||||||
subSpace.subspaceName,
|
style: Theme.of(context)
|
||||||
style: const TextStyle(
|
.textTheme
|
||||||
|
.bodySmall
|
||||||
|
?.copyWith(
|
||||||
color: ColorsManager.spaceColor,
|
color: ColorsManager.spaceColor,
|
||||||
),
|
)),
|
||||||
),
|
|
||||||
backgroundColor: ColorsManager.whiteColors,
|
backgroundColor: ColorsManager.whiteColors,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(10),
|
borderRadius: BorderRadius.circular(10),
|
||||||
@ -141,9 +142,12 @@ class CreateSubSpaceModelDialog extends StatelessWidget {
|
|||||||
hintText: state.subSpaces.isEmpty
|
hintText: state.subSpaces.isEmpty
|
||||||
? 'Please enter the name'
|
? 'Please enter the name'
|
||||||
: null,
|
: null,
|
||||||
hintStyle: const TextStyle(
|
hintStyle: Theme.of(context)
|
||||||
color: ColorsManager.lightGrayColor),
|
.textTheme
|
||||||
),
|
.bodySmall!
|
||||||
|
.copyWith(
|
||||||
|
color: ColorsManager
|
||||||
|
.lightGrayColor)),
|
||||||
onSubmitted: (value) {
|
onSubmitted: (value) {
|
||||||
if (value.trim().isNotEmpty) {
|
if (value.trim().isNotEmpty) {
|
||||||
context.read<SubSpaceModelBloc>().add(
|
context.read<SubSpaceModelBloc>().add(
|
||||||
@ -154,9 +158,11 @@ class CreateSubSpaceModelDialog extends StatelessWidget {
|
|||||||
textController.clear();
|
textController.clear();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
style: const TextStyle(
|
style: Theme.of(context)
|
||||||
color: ColorsManager.blackColor),
|
.textTheme
|
||||||
),
|
.bodyMedium
|
||||||
|
?.copyWith(
|
||||||
|
color: ColorsManager.blackColor)),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@ -164,13 +170,13 @@ class CreateSubSpaceModelDialog extends StatelessWidget {
|
|||||||
if (state.errorMessage.isNotEmpty)
|
if (state.errorMessage.isNotEmpty)
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.only(bottom: 16.0),
|
padding: const EdgeInsets.only(bottom: 16.0),
|
||||||
child: Text(
|
child: Text(state.errorMessage,
|
||||||
state.errorMessage,
|
style: Theme.of(context)
|
||||||
style: const TextStyle(
|
.textTheme
|
||||||
|
.bodySmall
|
||||||
|
?.copyWith(
|
||||||
color: ColorsManager.red,
|
color: ColorsManager.red,
|
||||||
fontSize: 12,
|
)),
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
Row(
|
Row(
|
||||||
|
@ -97,7 +97,10 @@ class SpaceModelPage extends StatelessWidget {
|
|||||||
return Center(
|
return Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
'Error: ${state.message}',
|
'Error: ${state.message}',
|
||||||
style: const TextStyle(color: ColorsManager.warningRed),
|
style: Theme.of(context)
|
||||||
|
.textTheme
|
||||||
|
.bodySmall
|
||||||
|
?.copyWith(color: ColorsManager.warningRed),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ class DynamicRoomWidget extends StatelessWidget {
|
|||||||
final TextPainter textPainter = TextPainter(
|
final TextPainter textPainter = TextPainter(
|
||||||
text: TextSpan(
|
text: TextSpan(
|
||||||
text: subspace.subspaceName,
|
text: subspace.subspaceName,
|
||||||
style: const TextStyle(fontSize: 16),
|
style: Theme.of(context).textTheme.bodyMedium
|
||||||
),
|
),
|
||||||
textDirection: TextDirection.ltr,
|
textDirection: TextDirection.ltr,
|
||||||
)..layout();
|
)..layout();
|
||||||
|
Reference in New Issue
Block a user