GithubHelp home page GithubHelp logo

night-sky-studio / ibuki-mobile Goto Github PK

View Code? Open in Web Editor NEW
6.0 0.0 3.0 6.09 MB

Fully customizable Booru browser application. Now on your phone.

License: Apache License 2.0

Kotlin 0.08% JavaScript 8.02% Ruby 1.57% Swift 0.60% Objective-C 0.02% Dart 64.81% CMake 10.07% C++ 13.27% C 0.49% HTML 1.08%
booru booru-browser booru-image-viewer danbooru dart e621 flutter gelbooru konachan safebooru

ibuki-mobile's People

Contributors

lilystilson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

ibuki-mobile's Issues

Add indication to download button when download is finished

The problem

Currently the download button in ImageViewer does not display progress nor any status of what has happened with the download itself.

The purposed solution

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
        }
    }
);

Fix inconsistent closing of bottom panel in Image Viewer

The problem

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.

Expected behavior

Panel closes regardless of its contents when user swipes down on it.

Device information

All platforms

Additional context

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...

App not starting on Android API level 33

The problem

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);
    }
}

Purposed fix

Check if the current API level is less than 33 and ignore asking for storage permissions there.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.