You are on page 1of 2

import 'package:flutter/material.

dart';
import 'screens/allcities.dart';

void main() {
runApp(const MyApp());
}

class MyApp extends StatelessWidget {


const MyApp({Key? key});

@override
Widget build(BuildContext context) {
return const MaterialApp(
home: FirstPage(),
);
}
}

class FirstPage extends StatelessWidget {


const FirstPage({Key? key});

@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Stack(
children: [
SizedBox(
width: double.infinity,
child: Image.asset(
'assets/images/logo.jpeg', // Replace with the actual path to your logo image
height: 500, // Adjust the height as needed
fit: BoxFit.cover, // Ensure the image covers the entire space
),
),
],
),
),
floatingActionButton: Padding(
padding: const EdgeInsets.only(bottom: 20, right: 20),
child: ElevatedButton(
onPressed: () {
// Navigate to AllCities page when the button is pressed
Navigator.push(
context,
MaterialPageRoute(builder: (context) => const AllCities()),
);
},
style: ElevatedButton.styleFrom(
primary: Colors.lightGreen,
minimumSize: Size(150, 60), // Adjust the size as needed
),
child: const Text(
'Continue',
style: TextStyle(
color: Colors.white,
fontSize: 18,
),
),
),
),
);
}
}

You might also like