75 lines
2.6 KiB
Dart
75 lines
2.6 KiB
Dart
|
import 'package:flutter/cupertino.dart';
|
||
|
import 'package:flutter/material.dart';
|
||
|
import 'package:MeinCantor/const.dart';
|
||
|
|
||
|
class InfoSettings extends StatelessWidget {
|
||
|
const InfoSettings({Key? key}) : super(key: key);
|
||
|
|
||
|
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return Scaffold(
|
||
|
appBar: AppBar(
|
||
|
title: const Text("Informationen"),
|
||
|
centerTitle: true,
|
||
|
),
|
||
|
body: ListView(
|
||
|
padding: const EdgeInsets.fromLTRB(5, 5, 5, 5),
|
||
|
children: [
|
||
|
const ListTile(
|
||
|
leading: Icon(Icons.info_outlined),
|
||
|
title: Text("Version"),
|
||
|
subtitle: Text(version)
|
||
|
),
|
||
|
ListTile(
|
||
|
leading: const Icon(Icons.settings_backup_restore_outlined),
|
||
|
title: const Text("Änderungsverlauf"),
|
||
|
onTap: () {
|
||
|
showModalBottomSheet<void>(
|
||
|
isScrollControlled: true,
|
||
|
context: context,
|
||
|
builder: (BuildContext context) {
|
||
|
return Container(
|
||
|
height: 400,
|
||
|
//color: Colors.amber,
|
||
|
child: Column(
|
||
|
//mainAxisAlignment: MainAxisAlignment.center,
|
||
|
mainAxisSize: MainAxisSize.min,
|
||
|
children: <Widget>[
|
||
|
AppBar(
|
||
|
title: const Text("Änderungsverlauf"),
|
||
|
),
|
||
|
const Padding(
|
||
|
padding: EdgeInsets.all(10),
|
||
|
child: Text(""),
|
||
|
),
|
||
|
/*ElevatedButton(
|
||
|
child: const Text('Close BottomSheet'),
|
||
|
onPressed: () => Navigator.pop(context),
|
||
|
)*/
|
||
|
],
|
||
|
),
|
||
|
);
|
||
|
},
|
||
|
);
|
||
|
},
|
||
|
),
|
||
|
ListTile(
|
||
|
leading: const Icon(Icons.copyright_outlined),
|
||
|
title: const Text("Lizenzen"),
|
||
|
onTap: () {
|
||
|
Navigator.push(
|
||
|
context,
|
||
|
MaterialPageRoute(builder: (context) => LicensePage(
|
||
|
applicationIcon: Image.asset("assets/images/meincantor_r.png",
|
||
|
height: 64, width: 64),
|
||
|
applicationVersion: version,
|
||
|
)),
|
||
|
);
|
||
|
},
|
||
|
),
|
||
|
],
|
||
|
));
|
||
|
}
|
||
|
}
|