mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-22 05:59:30 +02:00
More progress on UI - basics almost done
This commit is contained in:
@@ -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();
|
||||
// }
|
||||
// }
|
||||
|
Reference in New Issue
Block a user