Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Memri
Flutter App for Memri
Commits
04e108be
Commit
04e108be
authored
2 years ago
by
Erfan Jazeb Nikoo
Browse files
Options
Download
Plain Diff
Merge branch 'erfan/ui-3' into 'dev'
erfan/ui-3 See merge request
!470
parents
f78f3061
e2065c39
Pipeline
#11483
passed with stages
in 10 minutes and 58 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/screens/workspace/projects/projects_preview_app_screen.dart
+1
-1
...reens/workspace/projects/projects_preview_app_screen.dart
lib/widgets/data_app/data_app_list.dart
+23
-15
lib/widgets/data_app/data_app_list.dart
pubspec.yaml
+1
-1
pubspec.yaml
with
25 additions
and
17 deletions
+25
-17
lib/screens/workspace/projects/projects_preview_app_screen.dart
+
1
-
1
View file @
04e108be
...
...
@@ -200,7 +200,7 @@ class _ProjectsAppPreviewScreen extends State<ProjectsPreviewAppScreen> {
Container
(
width:
MediaQuery
.
of
(
context
)
.
size
.
width
,
constraints:
BoxConstraints
(
minHeight:
256
),
child:
DataAppList
(),
child:
DataAppList
(
preview:
true
),
),
SizedBox
(
height:
50
),
Wrap
(
...
...
This diff is collapsed.
Click to expand it.
lib/widgets/data_app/data_app_list.dart
+
23
-
15
View file @
04e108be
...
...
@@ -8,7 +8,9 @@ import 'package:memri/widgets/data_app/data_app_row.dart';
import
'package:provider/provider.dart'
;
class
DataAppList
extends
StatefulWidget
{
const
DataAppList
({
Key
?
key
})
:
super
(
key:
key
);
const
DataAppList
({
Key
?
key
,
this
.
preview
=
false
})
:
super
(
key:
key
);
final
bool
preview
;
@override
State
<
DataAppList
>
createState
()
=
>
_DataAppListState
();
...
...
@@ -27,22 +29,28 @@ class _DataAppListState extends State<DataAppList> {
Expanded
(
flex:
2
,
child:
Padding
(
padding:
EdgeInsets
.
symmetric
(
horizontal:
30
,
vertical:
20
+
(
!
ResponsiveHelper
(
context
)
.
isSmallScreen
?
20
:
0
),
),
padding:
widget
.
preview
?
EdgeInsets
.
zero
:
EdgeInsets
.
symmetric
(
horizontal:
30
,
vertical:
20
+
(
!
ResponsiveHelper
(
context
)
.
isSmallScreen
?
20
:
0
),
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Text
(
provider
.
currentPlugin
?.
get
(
'name'
)
??
'Untitled App'
,
style:
app
.
styles
.
headline1
,
),
if
(
provider
.
currentPlugin
?.
get
(
'pluginDescription'
)
!=
null
)
if
(
!
widget
.
preview
)
Text
(
provider
.
currentPlugin
?.
get
(
'name'
)
??
'Untitled App'
,
style:
app
.
styles
.
headline1
,
),
if
(
!
widget
.
preview
&&
provider
.
currentPlugin
?.
get
(
'pluginDescription'
)
!=
null
)
Padding
(
padding:
const
EdgeInsets
.
only
(
top:
10
),
child:
Text
(
...
...
@@ -51,7 +59,7 @@ class _DataAppListState extends State<DataAppList> {
style:
app
.
styles
.
bodyText1
,
),
),
SizedBox
(
height:
50
),
if
(
!
widget
.
preview
)
SizedBox
(
height:
50
),
..
.
List
.
generate
(
provider
.
currentDataAppItems
.
length
,
(
index
)
{
...
...
This diff is collapsed.
Click to expand it.
pubspec.yaml
+
1
-
1
View file @
04e108be
...
...
@@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version
:
3.0.13+
0
version
:
3.0.13+
1
environment
:
sdk
:
"
>=2.12.0
<3.0.0"
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets