night-sky-studio / ibuki-mobile Goto Github PK
View Code? Open in Web Editor NEWFully customizable Booru browser application. Now on your phone.
License: Apache License 2.0
Fully customizable Booru browser application. Now on your phone.
License: Apache License 2.0
Currently the download button in ImageViewer does not display progress nor any status of what has happened with the download itself.
Add some kind of indication (CircularProgressBar
/Icon
) to display the status of current download state.
We already have a function for tracking progress, we need to have a hook that'd change download button's contents depending on the status.
/// lib/pages/image_viewer_page.dart:90
await Dio(BaseOptions(headers: {"User-Agent": "IbukiMobile/1.0.0 Ibuki/1.0.0 (Night Sky Studio)"})).download(
image.originalFileURL,
savePath,
onReceiveProgress: (received, total) {
if (total != -1) {
debugPrint("${(received / total * 100).toStringAsFixed(0)}%");
//you can build progressbar feature too
}
}
);
Today's update brought issue with pages again: now results in searrch, etc. are being displayed twice.
Currently, if bottom pane contents in ImageViewerPage
can scroll, then SingleChildScrollView
overrides scrolling behavior of the Pane and there is no way to close it, unless you grab the header, which is not the part of a scroll view mentioned above.
Panel closes regardless of its contents when user swipes down on it.
All platforms
Looks like we'd need to wait for the SlidingUpPanel
to be updated or find our own solution, because using provided ScrollController
does fix the issue, but messes up pagination...
On Android API 33 the application does not start, because it tries to ask for permissions there and fails.
/// lib/main.dart
if (Platform.isAndroid) {
Map<Permission, PermissionStatus> statuses = await [
Permission.storage,
//add more permission to request here.
].request();
if (!statuses[Permission.storage]!.isGranted) {
debugPrint("Permission denied.");
exit(1);
}
}
Check if the current API level is less than 33 and ignore asking for storage permissions there.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.