mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: use interactiveviewer gallery
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -63,7 +63,7 @@ class _DynamicsPageState extends State<DynamicsPage>
|
||||
context: context,
|
||||
useSafeArea: true,
|
||||
isScrollControlled: true,
|
||||
builder: (_) => const CreatePanel(),
|
||||
builder: (context) => const CreatePanel(),
|
||||
);
|
||||
}
|
||||
},
|
||||
@@ -356,7 +356,7 @@ class _CreatePanelState extends State<CreatePanel> {
|
||||
StreamBuilder(
|
||||
initialData: false,
|
||||
stream: _isEnableStream.stream,
|
||||
builder: (_, snapshot) => FilledButton.tonal(
|
||||
builder: (context, snapshot) => FilledButton.tonal(
|
||||
onPressed: snapshot.data == true ? _onCreate : null,
|
||||
style: FilledButton.styleFrom(
|
||||
padding:
|
||||
@@ -536,7 +536,7 @@ class _CreatePanelState extends State<CreatePanel> {
|
||||
StreamBuilder(
|
||||
initialData: const [],
|
||||
stream: _pathStream.stream,
|
||||
builder: (_, snapshot) => SizedBox(
|
||||
builder: (context, snapshot) => SizedBox(
|
||||
height: 75,
|
||||
child: ListView.separated(
|
||||
scrollDirection: Axis.horizontal,
|
||||
@@ -619,7 +619,7 @@ class _CreatePanelState extends State<CreatePanel> {
|
||||
);
|
||||
}
|
||||
},
|
||||
separatorBuilder: (_, index) => const SizedBox(width: 10),
|
||||
separatorBuilder: (context, index) => const SizedBox(width: 10),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -88,7 +88,7 @@ class _ActionPanelState extends State<ActionPanel> {
|
||||
context: context,
|
||||
isScrollControlled: true,
|
||||
useSafeArea: true,
|
||||
builder: (_) => RepostPanel(
|
||||
builder: (context) => RepostPanel(
|
||||
item: widget.item,
|
||||
callback: () {
|
||||
int count = int.tryParse(
|
||||
|
||||
@@ -240,7 +240,7 @@ class MorePanel extends StatelessWidget {
|
||||
Get.back();
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (_) => AlertDialog(
|
||||
builder: (context) => AlertDialog(
|
||||
title: const Text('确定删除该动态?'),
|
||||
actions: [
|
||||
TextButton(
|
||||
|
||||
@@ -241,7 +241,7 @@ class MorePanel extends StatelessWidget {
|
||||
Get.back();
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (_) => AlertDialog(
|
||||
builder: (context) => AlertDialog(
|
||||
title: const Text('确定删除该动态?'),
|
||||
actions: [
|
||||
TextButton(
|
||||
|
||||
@@ -17,7 +17,7 @@ class Content extends StatelessWidget {
|
||||
InlineSpan picsNodes() {
|
||||
return WidgetSpan(
|
||||
child: LayoutBuilder(
|
||||
builder: (_, constraints) => image(
|
||||
builder: (context, constraints) => imageview(
|
||||
constraints.maxWidth,
|
||||
(item.modules.moduleDynamic.major.opus.pics as List)
|
||||
.map(
|
||||
|
||||
@@ -18,7 +18,7 @@ class ContentGrpc extends StatelessWidget {
|
||||
InlineSpan picsNodes() {
|
||||
return WidgetSpan(
|
||||
child: LayoutBuilder(
|
||||
builder: (_, constraints) => image(
|
||||
builder: (context, constraints) => imageview(
|
||||
constraints.maxWidth,
|
||||
item.modules.first.moduleDynamic.dynDraw.items
|
||||
.map(
|
||||
|
||||
@@ -17,7 +17,7 @@ import 'video_panel.dart';
|
||||
InlineSpan picsNodes(List<OpusPicsModel> pics) {
|
||||
return WidgetSpan(
|
||||
child: LayoutBuilder(
|
||||
builder: (_, constraints) => image(
|
||||
builder: (context, constraints) => imageview(
|
||||
constraints.maxWidth,
|
||||
pics
|
||||
.map(
|
||||
|
||||
@@ -9,7 +9,7 @@ Widget picWidget(item, context) {
|
||||
return const SizedBox();
|
||||
}
|
||||
return LayoutBuilder(
|
||||
builder: (_, constraints) => image(
|
||||
builder: (context, constraints) => imageview(
|
||||
constraints.maxWidth,
|
||||
(item.modules.moduleDynamic.major.draw.items as List)
|
||||
.map(
|
||||
|
||||
Reference in New Issue
Block a user