Toggle navigation
Toggle navigation
This project
Loading...
Sign in
OnePoem
/
OnePoem-App
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Reason Pun
2022-01-25 14:04:17 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
256b0816da2f8e525f26248f0f8eb5dfd5627acf
256b0816
1 parent
21a53e1e
clear
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
lib/recorder/video/captures_screen.dart
lib/recorder/video/preview_screen.dart
lib/recorder/video/captures_screen.dart
View file @
256b081
import
'dart:io'
;
import
'package:flutter/material.dart'
;
import
'preview_screen.dart'
;
class
CapturesScreen
extends
StatelessWidget
{
final
List
<
File
>
imageFileList
;
const
CapturesScreen
({
required
this
.
imageFileList
});
const
CapturesScreen
({
Key
?
key
,
required
this
.
imageFileList
,
})
:
super
(
key:
key
);
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
backgroundColor:
Colors
.
black
,
body:
SingleChildScrollView
(
physics:
BouncingScrollPhysics
(),
physics:
const
BouncingScrollPhysics
(),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Padding
(
padding:
const
EdgeInsets
.
all
(
16.0
),
const
Padding
(
padding:
EdgeInsets
.
all
(
16.0
),
child:
Text
(
'Captures'
,
style:
TextStyle
(
...
...
@@ -30,7 +32,7 @@ class CapturesScreen extends StatelessWidget {
),
GridView
.
count
(
shrinkWrap:
true
,
physics:
NeverScrollableScrollPhysics
(),
physics:
const
NeverScrollableScrollPhysics
(),
crossAxisCount:
2
,
children:
[
for
(
File
imageFile
in
imageFileList
)
...
...
lib/recorder/video/preview_screen.dart
View file @
256b081
...
...
@@ -9,9 +9,10 @@ class PreviewScreen extends StatelessWidget {
final
List
<
File
>
fileList
;
const
PreviewScreen
({
Key
?
key
,
required
this
.
imageFile
,
required
this
.
fileList
,
});
})
:
super
(
key:
key
)
;
@override
Widget
build
(
BuildContext
context
)
{
...
...
Please
register
or
login
to post a comment