import 'package:flutter/material.dart';
class CrossPlatformInfoScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Cross-Platform Info'),
),
body: SingleChildScrollView(
padding: EdgeInsets.all(16),
child: Text(
'Flutter lets you write one app that works on Android, iOS, web, and desktop.\n\n'
'It uses a single codebase and its own rendering engine.\n\n'
'This means faster development and consistent look everywhere.',
style: TextStyle(fontSize: 16),
),
),
bottomNavigationBar: Padding(
padding: EdgeInsets.all(12),
child: SizedBox(
height: 48,
child: ElevatedButton(
onPressed: () => Navigator.of(context).pop(),
child: Text('OK'),
),
),
),
);
}
}
This screen uses a Scaffold with an AppBar for the title. The main text is inside a SingleChildScrollView with padding so it scrolls on small screens. The text explains Flutter's cross-platform features in simple words.
At the bottom, an ElevatedButton labeled 'OK' is placed inside bottomNavigationBar with padding and fixed height. When tapped, it closes the screen using Navigator.pop().
This layout ensures the content is readable and the button is easy to tap, following Flutter's design guidelines.