misc: initial commit
This commit is contained in:
98
lib/src/about_screen.dart
Normal file
98
lib/src/about_screen.dart
Normal file
@@ -0,0 +1,98 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:markettakers/main.dart';
|
||||
import 'package:markettakers/src/loaders/loader.dart';
|
||||
import 'package:talker_flutter/talker_flutter.dart';
|
||||
|
||||
class AboutScreen extends StatelessWidget {
|
||||
final String decription;
|
||||
final List<Widget> children;
|
||||
const AboutScreen({
|
||||
super.key,
|
||||
required this.decription,
|
||||
this.children = const [],
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: [
|
||||
Flexible(
|
||||
flex: 2,
|
||||
child: Loader(flavour: LoaderFlavour.big, playing: true),
|
||||
),
|
||||
Flexible(
|
||||
flex: 1,
|
||||
child: Text(
|
||||
decription,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(fontSize: 16, color: Colors.grey[500]),
|
||||
),
|
||||
),
|
||||
|
||||
Expanded(
|
||||
child: Align(
|
||||
alignment: Alignment.bottomCenter,
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: [
|
||||
Credits(),
|
||||
|
||||
Footer(children: children),
|
||||
const Text("MarketTakers (c) 2025"),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class Footer extends StatelessWidget {
|
||||
const Footer({super.key, required this.children});
|
||||
|
||||
final List<Widget> children;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return FractionallySizedBox(
|
||||
widthFactor: 0.5,
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
OutlinedButton(
|
||||
onPressed: () {
|
||||
Navigator.of(context).push(
|
||||
MaterialPageRoute(
|
||||
builder: (context) => TalkerScreen(talker: talker),
|
||||
),
|
||||
);
|
||||
},
|
||||
child: const Text("View Logs"),
|
||||
),
|
||||
...children,
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class Credits extends StatelessWidget {
|
||||
const Credits({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
const Text("Made with "),
|
||||
const Icon(Icons.favorite, color: Colors.red),
|
||||
const Text(" by Skipper, Clewerwild and karabyn2187"),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user