More progress on UI - basics almost done

This commit is contained in:
Imran Remtulla
2022-08-18 15:25:30 -04:00
parent 605877f6bf
commit 0e36e53b46
5 changed files with 176 additions and 126 deletions

View File

@@ -22,67 +22,6 @@ class MyApp extends StatelessWidget {
theme: ThemeData(
primarySwatch: Colors.blue,
),
// home: const MyHomePage(title: 'Obtainium'),
home: const AppsPage());
}
}
// class MyHomePage extends StatefulWidget {
// const MyHomePage({super.key, required this.title});
// final String title;
// @override
// State<MyHomePage> createState() => _MyHomePageState();
// }
// class _MyHomePageState extends State<MyHomePage> {
// int ind = 0;
// List<String> urls = [
// 'https://github.com/Ashinch/ReadYou/releases/download', // Should work
// 'http://github.com/syncthing/syncthing-android/releases/tag/1.20.4', // Should work
// 'https://github.com/videolan/vlc' // Should not
// ];
// @override
// Widget build(BuildContext context) {
// ToastContext().init(context);
// return Scaffold(
// appBar: AppBar(
// title: Text(widget.title),
// ),
// body: Center(
// child: Column(
// mainAxisAlignment: MainAxisAlignment.center,
// children: <Widget>[
// Text(
// urls[ind],
// style: Theme.of(context).textTheme.headline4,
// ),
// ],
// ),
// ),
// floatingActionButton: FloatingActionButton(
// onPressed: () {
// context.read<AppsProvider>().installApp(urls[ind]).then((_) {
// setState(() {
// ind = ind == (urls.length - 1) ? 0 : ind + 1;
// });
// }).catchError((err) {
// if (err is! String) {
// err = "Unknown Error";
// }
// Toast.show(err);
// });
// },
// tooltip: 'Increment',
// child: const Icon(Icons.add),
// ),
// );
// }
// @override
// void dispose() {
// super.dispose();
// }
// }