Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2023-156
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2023-156
2023-156
Commits
28183030
Commit
28183030
authored
Sep 06, 2023
by
Edirisinghe B.M - IT20252304
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'it20252304'
Master See merge request
!25
parents
58e9000e
604509cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
145 additions
and
1 deletion
+145
-1
README.md
README.md
+4
-1
lib/grades/Pricing.dart
lib/grades/Pricing.dart
+141
-0
No files found.
README.md
View file @
28183030
...
...
@@ -44,4 +44,7 @@ Determines the grade of cinnamon quills, through Image processing.
*
Backend: Python
*
NN: RNN & CNN
*
Libraries: Flusk / TensorFlow
*
Algorithm : LSTM
\ No newline at end of file
*
Algorithm : LSTM
agroxlanka.com
\ No newline at end of file
lib/grades/Pricing.dart
0 → 100644
View file @
28183030
import
'dart:io'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/src/widgets/framework.dart'
;
import
'package:flutter/src/widgets/placeholder.dart'
;
import
'package:google_fonts/google_fonts.dart'
;
class
GradePricing
extends
StatefulWidget
{
const
GradePricing
({
super
.
key
,
required
this
.
imgFile
});
final
File
imgFile
;
@override
State
<
GradePricing
>
createState
()
=>
_GradePricingState
();
}
class
_GradePricingState
extends
State
<
GradePricing
>
{
@override
Widget
build
(
BuildContext
context
)
{
var
width
=
MediaQuery
.
of
(
context
).
size
.
width
;
var
height
=
MediaQuery
.
of
(
context
).
size
.
height
;
return
Scaffold
(
backgroundColor:
Colors
.
grey
.
shade900
,
appBar:
AppBar
(
backgroundColor:
Colors
.
black
,
title:
Text
(
"Grade Pricing"
,
style:
GoogleFonts
.
roboto
(
color:
Colors
.
white
,
fontWeight:
FontWeight
.
bold
,
),
),
leading:
GestureDetector
(
onTap:
()
{
Navigator
.
of
(
context
).
pop
();
},
child:
Icon
(
Icons
.
arrow_back
,
color:
Colors
.
white
,
),
),
),
body:
Container
(
padding:
EdgeInsets
.
symmetric
(
horizontal:
20
,
),
child:
SingleChildScrollView
(
child:
Column
(
children:
[
Card
(
elevation:
10
,
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
15.0
),
),
color:
Colors
.
white
,
child:
Container
(
width:
width
,
padding:
EdgeInsets
.
symmetric
(
vertical:
height
/
40
,
horizontal:
width
/
20
,
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Image
.
file
(
widget
.
imgFile
,
height:
height
/
4
,
width:
width
,
fit:
BoxFit
.
cover
,
),
SizedBox
(
height:
20
,
),
Row
(
children:
[
Text
(
"Grade:"
,
softWrap:
true
,
style:
GoogleFonts
.
roboto
(
fontWeight:
FontWeight
.
bold
,
fontSize:
width
/
19
,
),
),
Text
(
" Alba"
,
softWrap:
true
,
style:
GoogleFonts
.
roboto
(
fontSize:
width
/
19
,
),
),
],
),
Row
(
children:
[
Text
(
"Required minimum length:"
,
softWrap:
true
,
style:
GoogleFonts
.
roboto
(
fontWeight:
FontWeight
.
bold
,
fontSize:
width
/
19
,
),
),
Text
(
" 15cm"
,
softWrap:
true
,
style:
GoogleFonts
.
roboto
(
fontSize:
width
/
19
,
),
),
],
),
SizedBox
(
height:
30
,
),
Row
(
children:
[
Text
(
"Predicted earning/kg:"
,
softWrap:
true
,
style:
GoogleFonts
.
roboto
(
fontWeight:
FontWeight
.
bold
,
fontSize:
width
/
19
,
),
),
],
),
Text
(
"
\$
70 ≈ LKR
${70 * 311}
"
,
softWrap:
true
,
style:
GoogleFonts
.
roboto
(
fontSize:
width
/
19
,
),
),
],
),
),
),
],
))),
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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