Swift2dart code4app

import ‘package:flutter/material.dart’;

class OnboardingScreen extends StatelessWidget {

@override

Widget build(BuildContext context) {

return Scaffold(

backgroundColor: Colors.white,

body: Center(

child: Column(

mainAxisAlignment: MainAxisAlignment.center,

children: [

            Image.asset(

              'assets/RAYZAPP.png', // Make sure to place your image in the assets folder

              width: 200,

              height: 200,

            ),

            SizedBox(height: 20),

            ElevatedButton(

              onPressed: () {

                Navigator.pushNamed(context, 'showQuestionnaire');

              },

              child: Text(

                'Start Assessment',

                style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold),

              ),

              style: ElevatedButton.styleFrom(

                primary: Colors.blue,

                shape: RoundedRectangleBorder(

                  borderRadius: BorderRadius.circular(8),

                ),

                padding: EdgeInsets.symmetric(horizontal: 20, vertical: 10),

              ),

            ),

          ],

),

),

);

}

}

Leave a comment