formpadding

This commit is contained in:
poojakhatawate 2024-05-21 14:30:43 +05:30
parent 2d3dcfa022
commit 6ddaf2774a
2 changed files with 39 additions and 23 deletions

View File

@ -290,16 +290,24 @@ class _EditInteractionScreenState extends State<EditInteractionScreen> {
sectionItem.input == sectionItem.input ==
'add' 'add'
? const SizedBox.shrink() ? const SizedBox.shrink()
: Text( : Padding(
padding:
const EdgeInsets
.only(
left: 8.0,
right: 8.0),
child: Text(
'${sectionItem.name}:*', '${sectionItem.name}:*',
style: TextStyle( style: TextStyle(
color: Colors.orange color: Colors
.orange
.shade800, .shade800,
fontSize: isTablet fontSize: isTablet
? 18 ? 18
: 12, : 12,
), ),
), ),
),
SizedBox( SizedBox(
height: isTablet ? 15 : 5, height: isTablet ? 15 : 5,
), ),

View File

@ -282,7 +282,13 @@ class _InteractionScreenState extends State<InteractionScreen> {
sectionItem.input == sectionItem.input ==
'add' 'add'
? const SizedBox.shrink() ? const SizedBox.shrink()
: FittedBox( : Padding(
padding:
const EdgeInsets
.only(
left: 8.0,
right: 8.0),
child: FittedBox(
fit: BoxFit.scaleDown, fit: BoxFit.scaleDown,
child: Text( child: Text(
sectionItem sectionItem
@ -291,7 +297,8 @@ class _InteractionScreenState extends State<InteractionScreen> {
? '${sectionItem.name}:*' ? '${sectionItem.name}:*'
: '${sectionItem.name}:', : '${sectionItem.name}:',
style: TextStyle( style: TextStyle(
color: Colors.orange color: Colors
.orange
.shade800, .shade800,
fontSize: 18.0, fontSize: 18.0,
// fontSize: isTablet // fontSize: isTablet
@ -300,6 +307,7 @@ class _InteractionScreenState extends State<InteractionScreen> {
), ),
), ),
), ),
),
// SizedBox( // SizedBox(
// height: isTablet ? 15 : 5, // height: isTablet ? 15 : 5,
// ), // ),