made app modules movable in their order

This commit is contained in:
2025-02-09 15:06:14 +01:00
parent 8868914a76
commit d833cdb733
13 changed files with 300 additions and 118 deletions

View File

@ -7,29 +7,26 @@ class PlaceholderView extends StatelessWidget {
const PlaceholderView({super.key, required this.icon, required this.text, this.button});
@override
Widget build(BuildContext context) => DefaultTextStyle(
style: const TextStyle(),
child: Center(
child: Container(
margin: const EdgeInsets.only(top: 100, left: 20, right: 20),
child: Column(
children: [
Container(
margin: const EdgeInsets.all(30),
child: Icon(icon, color: Colors.grey, size: 60),
),
Text(text,
style: const TextStyle(
fontSize: 20,
color: Colors.grey,
),
textAlign: TextAlign.center,
),
const SizedBox(height: 30),
if(button != null) button!,
],
),
Widget build(BuildContext context) => Scaffold(
body: Center(
child: Container(
margin: const EdgeInsets.only(top: 100, left: 20, right: 20),
child: Column(
children: [
Container(
margin: const EdgeInsets.all(30),
child: Icon(icon, size: 60),
),
Text(
text,
style: const TextStyle(fontSize: 20,),
textAlign: TextAlign.center,
),
const SizedBox(height: 30),
if(button != null) button!,
],
),
),
);
),
);
}