import 'package:flutter/material.dart';
class DartOverviewScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Dart Programming'),
),
body: Padding(
padding: EdgeInsets.all(16),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('• Easy to learn', style: TextStyle(fontSize: 18)),
SizedBox(height: 8),
Text('• Optimized for UI', style: TextStyle(fontSize: 18)),
SizedBox(height: 8),
Text('• Supports async code', style: TextStyle(fontSize: 18)),
SizedBox(height: 8),
Text('• Strong typing', style: TextStyle(fontSize: 18)),
Spacer(),
Center(
child: ElevatedButton(
onPressed: () {
Navigator.of(context).pop();
},
child: Text('Close'),
),
),
],
),
),
);
}
}
This screen uses a Scaffold with an AppBar titled 'Dart Programming'. The body has padding and a vertical column aligned to the start. Four bullet points are shown as Text widgets with a bullet character '•' and spacing between them. A Spacer pushes the Close button to the bottom. The Close button uses Navigator.pop() to close the screen when tapped.
This simple layout introduces Dart's key features in a clean, readable way.