Raid_Manager/app/lib/utils/disk_info_page.dart

29 lines
772 B
Dart
Raw Normal View History

import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import '../breadcrumb_page/breadcrumb_controller.dart';
class DiskInfoPage extends StatefulWidget {
const DiskInfoPage({Key? key}) : super(key: key);
@override
State<DiskInfoPage> createState() => _DiskInfoPageState();
}
class _DiskInfoPageState extends State<DiskInfoPage> {
@override
Widget build(BuildContext context) {
return Column(
children: [
const Text("Mysupercool page"),
TextButton(
onPressed: () {
Provider.of<BreadCrumbController>(context, listen: false)
.pushPage(const Text("your smart infos..."), "S.M.A.R.T");
},
child: const Text("Click me"))
],
);
}
}