2025-04-05
编程与技术
00

就下面的Tailwindcss类,谁用设置到,真香!

html
<!-- 下面的css实现了:网格布局,响应式列数量,自动列宽,单元格比例固定1:1 --> <div class="grid grid-cols-3 sm:grid-cols-4 md:grid-cols-5 xl:grid-cols-5 gap-4 grid-template-columns:repeat(auto-fill, minmax(200px, 1fr))"> </div>
2025-04-05
编程与技术
00

很多时候上架Android APP需要填写APP的签名信息,现在大多推荐使用 SHA-1/SHA-256 两种格式签名,但还是有一些傻逼平台要求 MD5 签名,如果你通过常规方案获取不到 MD5 签名,你可以尝试使用下面这个软件:

2025-03-18
编程与技术
00
java
// 构建错误图片占位符 Widget _buildErrorImage() { return Container( width: 120, height: 80, decoration: BoxDecoration( color: Colors.grey.shade200, borderRadius: BorderRadius.circular(8), ), child: Icon( Icons.image_not_supported_outlined, size: 40, color: Colors.grey.shade400, ), ); }
2025-03-18
编程与技术
00

不想多说什么,各种傻逼环境搞得人想吐,Gradle + Java 屎中屎,尤其是出现版本不兼容的情况时!

报错详情:

┌─ Flutter Fix ───────────────────────────────────────────────────────────────────────────────────┐ │ [!] Your project's Gradle version is incompatible with the Java version that Flutter is using │ │ for Gradle. │ │ │ │ If you recently upgraded Android Studio, consult the migration guide at │ │ https://flutter.dev/to/java-gradle-incompatibility. │ │ │ │ Otherwise, to fix this issue, first, check the Java version used by Flutter by running `flutter │ │ doctor --verbose`. │ │ │ │ Then, update the Gradle version specified in │ │ E:\work-gt\gt_yuanlitui_app\android\gradle\wrapper\gradle-wrapper.properties to be compatible │ │ with that Java version. See the link below for more information on compatible Java/Gradle │ │ versions: │ │ https://docs.gradle.org/current/userguide/compatibility.html#java │ │ │ │ │
2025-03-15
编程与技术
00

请问

ts
model Download {   download_id   Int      @id @default(autoincrement())   user_id       Int?   image_id      Int   download_date DateTime @default(now())   user          User?   image         Image   }

上面的 Prisma 表结构实体定义中,其中 user User 这种定义是什么意思?为什么要这么写?这么些有什么作用?在代码中如何使用这么定义的字段?

user User 这种定义是 Prisma 关系(relation)定义的一部分。它用于在 Download 模型和 User 模型之间建立关联。下面我来详细解释一下: