项目介绍

x3rocode/xblur-compose 是一个托管在 GitHub 上的开源项目,主要使用 Kotlin 编写,目前获得 281 个 Star、12 次 Fork。

仓库全名
x3rocode/xblur-compose
Star 数
281
Fork 数
12
未关闭 Issue
4

README 摘要

xBlur :cloud: xBlur is Realtime iOS-like blur for Android Compose :cloud: :moviecamera: Look how works https://user-images.githubusercontent.com/51151970/210694618-5910577f-54fc-40cd-9a82-263653fb8fff.mp4 :rocket: Using Gradle In your top-level build.gradle file: In your app build.gradle file: :zap: Quik How to Use :fire: Feature backgroundColor : You can mix ANY COLOR you want. backgroundColor|sample|…

完整内容见 GitHub 原始 README 或本页 。

常见问题

xblur-compose 用什么语言开发?

主要使用 Kotlin 编写,目前有 281 个 Star。

如何获取 xblur-compose 的源码?

可以直接克隆仓库:git clone https://github.com/x3rocode/xblur-compose.git,默认分支为 main;安装与运行步骤见仓库 README。

xblur-compose 最近还在维护吗?

仓库最近一次更新为 2023年12月12日,当前有 4 个未关闭 Issue;Star 数为 281,可作为社区活跃度的参考。

关于

:rocket: Realtime iOS like blur for Android Compose.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

语言占比

Kotlin

Release

贡献者

README

xBlur

api api api api api

:cloud: xBlur is Realtime iOS-like blur for Android Compose :cloud:


:movie_camera: Look how works

https://user-images.githubusercontent.com/51151970/210694618-5910577f-54fc-40cd-9a82-263653fb8fff.mp4

:rocket: Using Gradle

In your top-level build.gradle file:

repositories {
  ...
  mavenCentral()
}

In your app build.gradle file:

dependencies {
    implementation 'com.github.x3rocode:xblur-compose:[latest_version]'
}

:zap: Quik How to Use

//This will look like IOS!
BlurDialog(
      blurRadius = 250,                       //blur radius
      openDialog = false },     //dialog ondismiss
      size = IntOffset(280,160),              //dialog size
      shape = RoundedCornerShape(30.dp),      //dialog shape
      backgroundColor = Color.White,          //mixing color with dialog
      backgroundColorAlpha = 0.4f,            //mixing color alpha
      dialogDimAmount = 0.3f,                 //set this if you want dark behind dialog.
      dialogBehindBlurRadius = 100,           //blur behind dialog
      isRealtime = true                       //Realtime capture or not. false = only the first time captured when dialog opens.
 ){
  //Some Contents inside dialog     
 }

:fire: Feature

  • backgroundColor : You can mix ANY COLOR you want.
backgroundColor sample
backgroundColor = Color.Transparent
backgroundColor = Color.White
backgroundColor = Color.Black
backgroundColor = Color.Yellow
backgroundColor = Color.Red

  • backgroundColorAlpha : You can set background color ALPHA.
backgroundColorAlpha sample
backgroundColorAlpha = 0.0f
backgroundColorAlpha = 0.5f
backgroundColorAlpha = 1.0f

  • dialogDimAmount : set this if you want DARK BEHIND dialog.
dialogDimAmount = 0.0f dialogDimAmount = 0.5f dialogDimAmount = 0.0f

  • dialogBehindBlurRadius : BLUR BEHIND dialog
dialogBehindBlurRadius = 0 dialogBehindBlurRadius = 100

:alarm_clock: Todo

  • blur toast message
  • blur navigation bar
  • blur bottom sheet

评论

暂无评论