mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2026-08-31 12:10:37 +00:00
- Bump all apps to sdk >=3.0.0 <4.0.0 and add flutter_lints + a shared analysis_options.yaml to every app (flutter analyze is now green repo-wide) - Fix real compile errors in firebase_google_authentication and image_editor, plus deprecated APIs (Matrix4, SvgPicture.color, textScaleFactor), missing async 'mounted' guards, and misc lints via dart fix + manual fixes - Align pubspec 'name' with each folder and Android namespace/applicationId with the documented github.nisrulz.* convention - Convert bmi_calculator from a legacy Flutter module to a standard app with a proper android/ scaffold; fix missing android:exported in launcher manifests across 22 apps so all Android builds pass - Untrack generated build files (GeneratedPluginRegistrant, .flutter-plugins-dependencies) and ignore them
56 lines
1.5 KiB
Dart
56 lines
1.5 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
class AboutPage extends StatelessWidget {
|
|
static const String routeName = "/about";
|
|
|
|
const AboutPage({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
// AppBar
|
|
appBar: AppBar(
|
|
// Title
|
|
title: Text("About Page"),
|
|
// App Bar background color
|
|
backgroundColor: Colors.blue,
|
|
),
|
|
// Body
|
|
body: Container(
|
|
// Center the content
|
|
child: Center(
|
|
child: Column(
|
|
// Center content in the column
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
// add children to the column
|
|
children: <Widget>[
|
|
// Text
|
|
Text(
|
|
"About Page\nClick on below icon to goto Home Page",
|
|
// Setting the style for the Text
|
|
style: TextStyle(fontSize: 20.0),
|
|
// Set text alignment to center
|
|
textAlign: TextAlign.center,
|
|
),
|
|
// Icon Button
|
|
IconButton(
|
|
icon: Icon(
|
|
Icons.home,
|
|
color: Colors.red,
|
|
),
|
|
// Execute when pressed
|
|
onPressed: () {
|
|
// use the navigator to goto a named route
|
|
Navigator.of(context).pushNamed('/');
|
|
},
|
|
// Setting the size of icon
|
|
iconSize: 80.0,
|
|
)
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|