Removed fixed width

This commit is contained in:
Jacques Doeleman 2022-09-28 17:03:36 +02:00
parent cd483d77d8
commit d2a5f36bb2

View file

@ -335,63 +335,44 @@ class _FlutterFormState extends ConsumerState<FlutterForm> {
onTap: () async { onTap: () async {
await _formController.jumpToPage(pageNumber); await _formController.jumpToPage(pageNumber);
}, },
child: Container( child: Column(
width: 390, children: [
padding: const EdgeInsets.only( Row(
top: 18, children: [
bottom: 16, Container(
right: 18, width: 30,
left: 27, height: 30,
), decoration: BoxDecoration(
decoration: BoxDecoration( color: const Color(0xFFD8D8D8),
color: Colors.white, borderRadius: BorderRadius.circular(5),
borderRadius: BorderRadius.circular(10),
boxShadow: [
BoxShadow(
color: const Color(0xFF000000).withOpacity(0.20),
blurRadius: 5,
),
],
),
child: Column(
children: [
Row(
children: [
Container(
width: 30,
height: 30,
decoration: BoxDecoration(
color: const Color(0xFFD8D8D8),
borderRadius: BorderRadius.circular(5),
),
), ),
const SizedBox(
width: 16,
),
Text(
inputController.checkPageTitle != null
? inputController.checkPageTitle!(inputResult)
: inputResult.toString(),
style: const TextStyle(
fontWeight: FontWeight.w900,
fontSize: 20,
),
),
const Spacer(),
const Icon(Icons.arrow_forward),
],
),
if (inputController.checkPageDescription != null)
const SizedBox(
height: 9,
), ),
if (inputController.checkPageDescription != null) const SizedBox(
width: 16,
),
Text( Text(
inputController.checkPageDescription!(inputResult), inputController.checkPageTitle != null
style: const TextStyle(fontSize: 16), ? inputController.checkPageTitle!(inputResult)
) : inputResult.toString(),
], style: const TextStyle(
), fontWeight: FontWeight.w900,
fontSize: 20,
),
),
const Spacer(),
const Icon(Icons.arrow_forward),
],
),
if (inputController.checkPageDescription != null)
const SizedBox(
height: 9,
),
if (inputController.checkPageDescription != null)
Text(
inputController.checkPageDescription!(inputResult),
style: const TextStyle(fontSize: 16),
)
],
), ),
), ),
); );