Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
NBT_APP
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2F-ART
NBT_APP
Commits
cd551ef8
Commit
cd551ef8
authored
Mar 03, 2022
by
Mobile : Art
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update030322
parent
79d61ff0
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
982 additions
and
38 deletions
+982
-38
.dart_tool/package_config.json
+19
-1
.dart_tool/package_config_subset
+12
-0
.idea/libraries/Dart_Packages.xml
+24
-0
.idea/workspace.xml
+5
-33
.packages
+4
-1
lib/screen/home/home_page.dart
+649
-3
lib/screen/notification/FavouriteList_Page.dart
+68
-0
lib/screen/notification/notification_page.dart
+177
-0
pubspec.lock
+21
-0
pubspec.yaml
+3
-0
No files found.
.dart_tool/package_config.json
View file @
cd551ef8
...
...
@@ -14,6 +14,12 @@
"languageVersion"
:
"2.12"
},
{
"name"
:
"carousel_slider"
,
"rootUri"
:
"file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/carousel_slider-4.0.0"
,
"packageUri"
:
"lib/"
,
"languageVersion"
:
"2.12"
},
{
"name"
:
"characters"
,
"rootUri"
:
"file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.2.0"
,
"packageUri"
:
"lib/"
,
...
...
@@ -44,6 +50,12 @@
"languageVersion"
:
"2.12"
},
{
"name"
:
"dots_indicator"
,
"rootUri"
:
"file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/dots_indicator-2.1.0"
,
"packageUri"
:
"lib/"
,
"languageVersion"
:
"2.12"
},
{
"name"
:
"fake_async"
,
"rootUri"
:
"file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.2.0"
,
"packageUri"
:
"lib/"
,
...
...
@@ -116,6 +128,12 @@
"languageVersion"
:
"2.12"
},
{
"name"
:
"smooth_page_indicator"
,
"rootUri"
:
"file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/smooth_page_indicator-1.0.0+2"
,
"packageUri"
:
"lib/"
,
"languageVersion"
:
"2.12"
},
{
"name"
:
"source_span"
,
"rootUri"
:
"file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.8.1"
,
"packageUri"
:
"lib/"
,
...
...
@@ -170,7 +188,7 @@
"languageVersion"
:
"2.15"
}
],
"generated"
:
"2022-03-03T03:
41:18.105451
Z"
,
"generated"
:
"2022-03-03T03:
51:07.163060
Z"
,
"generator"
:
"pub"
,
"generatorVersion"
:
"2.15.1"
}
.dart_tool/package_config_subset
View file @
cd551ef8
...
...
@@ -10,6 +10,10 @@ boolean_selector
2.12
file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/
file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/lib/
carousel_slider
2.12
file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/carousel_slider-4.0.0/
file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/carousel_slider-4.0.0/lib/
characters
2.12
file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.2.0/
...
...
@@ -30,6 +34,10 @@ cupertino_icons
2.12
file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-1.0.4/
file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-1.0.4/lib/
dots_indicator
2.12
file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/dots_indicator-2.1.0/
file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/dots_indicator-2.1.0/lib/
fake_async
2.12
file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.2.0/
...
...
@@ -66,6 +74,10 @@ rflutter_alert
2.7
file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/rflutter_alert-1.1.0/
file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/rflutter_alert-1.1.0/lib/
smooth_page_indicator
2.12
file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/smooth_page_indicator-1.0.0+2/
file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/smooth_page_indicator-1.0.0+2/lib/
source_span
2.12
file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.8.1/
...
...
.idea/libraries/Dart_Packages.xml
View file @
cd551ef8
...
...
@@ -16,6 +16,13 @@
</list>
</value>
</entry>
<entry
key=
"carousel_slider"
>
<value>
<list>
<option
value=
"$USER_HOME$/development/flutter/.pub-cache/hosted/pub.dartlang.org/carousel_slider-4.0.0/lib"
/>
</list>
</value>
</entry>
<entry
key=
"characters"
>
<value>
<list>
...
...
@@ -51,6 +58,13 @@
</list>
</value>
</entry>
<entry
key=
"dots_indicator"
>
<value>
<list>
<option
value=
"$USER_HOME$/development/flutter/.pub-cache/hosted/pub.dartlang.org/dots_indicator-2.1.0/lib"
/>
</list>
</value>
</entry>
<entry
key=
"fake_async"
>
<value>
<list>
...
...
@@ -135,6 +149,13 @@
</list>
</value>
</entry>
<entry
key=
"smooth_page_indicator"
>
<value>
<list>
<option
value=
"$USER_HOME$/development/flutter/.pub-cache/hosted/pub.dartlang.org/smooth_page_indicator-1.0.0+2/lib"
/>
</list>
</value>
</entry>
<entry
key=
"source_span"
>
<value>
<list>
...
...
@@ -196,11 +217,13 @@
<CLASSES>
<root
url=
"file://$USER_HOME$/development/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.8.2/lib"
/>
<root
url=
"file://$USER_HOME$/development/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/lib"
/>
<root
url=
"file://$USER_HOME$/development/flutter/.pub-cache/hosted/pub.dartlang.org/carousel_slider-4.0.0/lib"
/>
<root
url=
"file://$USER_HOME$/development/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.2.0/lib"
/>
<root
url=
"file://$USER_HOME$/development/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.3.1/lib"
/>
<root
url=
"file://$USER_HOME$/development/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.0/lib"
/>
<root
url=
"file://$USER_HOME$/development/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.15.0/lib"
/>
<root
url=
"file://$USER_HOME$/development/flutter/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-1.0.4/lib"
/>
<root
url=
"file://$USER_HOME$/development/flutter/.pub-cache/hosted/pub.dartlang.org/dots_indicator-2.1.0/lib"
/>
<root
url=
"file://$USER_HOME$/development/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.2.0/lib"
/>
<root
url=
"file://$USER_HOME$/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_lints-1.0.4/lib"
/>
<root
url=
"file://$USER_HOME$/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_screenutil-5.3.1/lib"
/>
...
...
@@ -210,6 +233,7 @@
<root
url=
"file://$USER_HOME$/development/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.7.0/lib"
/>
<root
url=
"file://$USER_HOME$/development/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.0/lib"
/>
<root
url=
"file://$USER_HOME$/development/flutter/.pub-cache/hosted/pub.dartlang.org/rflutter_alert-1.1.0/lib"
/>
<root
url=
"file://$USER_HOME$/development/flutter/.pub-cache/hosted/pub.dartlang.org/smooth_page_indicator-1.0.0+2/lib"
/>
<root
url=
"file://$USER_HOME$/development/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.8.1/lib"
/>
<root
url=
"file://$USER_HOME$/development/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.10.0/lib"
/>
<root
url=
"file://$USER_HOME$/development/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.1.0/lib"
/>
...
...
.idea/workspace.xml
View file @
cd551ef8
...
...
@@ -5,43 +5,15 @@
</component>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"c1439925-efc2-4fdb-a5ea-1a37e7dbf139"
name=
"Default Changelist"
comment=
""
>
<change
afterPath=
"$PROJECT_DIR$/.idea/libraries/Dart_SDK.xml"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/.idea/libraries/Flutter_Plugins.xml"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/.idea/runConfigurations.xml"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/assets/images/register_term_icon.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/lib/components/appbar_title.dart"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/lib/screen/login/login_page.dart"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/lib/screen/register/register_complete_page.dart"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/lib/screen/register/register_page.dart"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/lib/screen/term/term_page.dart"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.dart_tool/flutter_build/70f237836f513e84d16b29b63bfd9185/.filecache"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.dart_tool/flutter_build/70f237836f513e84d16b29b63bfd9185/.filecache"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.dart_tool/flutter_build/70f237836f513e84d16b29b63bfd9185/app.dill"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.dart_tool/flutter_build/70f237836f513e84d16b29b63bfd9185/app.dill"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.dart_tool/flutter_build/70f237836f513e84d16b29b63bfd9185/debug_ios_bundle_flutter_assets.stamp"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.dart_tool/flutter_build/70f237836f513e84d16b29b63bfd9185/debug_ios_bundle_flutter_assets.stamp"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.dart_tool/flutter_build/70f237836f513e84d16b29b63bfd9185/flutter_assets.d"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.dart_tool/flutter_build/70f237836f513e84d16b29b63bfd9185/flutter_assets.d"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.dart_tool/flutter_build/70f237836f513e84d16b29b63bfd9185/outputs.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.dart_tool/flutter_build/70f237836f513e84d16b29b63bfd9185/outputs.json"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/lib/screen/notification/FavouriteList_Page.dart"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/lib/screen/notification/notification_page.dart"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.dart_tool/package_config.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.dart_tool/package_config.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.dart_tool/package_config_subset"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.dart_tool/package_config_subset"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/libraries/Dart_Packages.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/libraries/Dart_Packages.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.packages"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.packages"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/build/c075001b96339384a97db4862b8ab8db.cache.dill.track.dill"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/build/c075001b96339384a97db4862b8ab8db.cache.dill.track.dill"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/build/ios/Debug-iphonesimulator/App.framework/App"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/build/ios/Debug-iphonesimulator/App.framework/App"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/build/ios/Debug-iphonesimulator/App.framework/_CodeSignature/CodeResources"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/build/ios/Debug-iphonesimulator/App.framework/_CodeSignature/CodeResources"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/build/ios/Debug-iphonesimulator/App.framework/flutter_assets/AssetManifest.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/build/ios/Debug-iphonesimulator/App.framework/flutter_assets/AssetManifest.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/build/ios/Debug-iphonesimulator/App.framework/flutter_assets/kernel_blob.bin"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/build/ios/Debug-iphonesimulator/App.framework/flutter_assets/kernel_blob.bin"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/App.framework/App"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/App.framework/App"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/App.framework/_CodeSignature/CodeResources"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/App.framework/_CodeSignature/CodeResources"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/App.framework/flutter_assets/AssetManifest.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/App.framework/flutter_assets/AssetManifest.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/App.framework/flutter_assets/kernel_blob.bin"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/App.framework/flutter_assets/kernel_blob.bin"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/build/ios/Debug-iphonesimulator/Runner.app/Runner"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/build/ios/Debug-iphonesimulator/Runner.app/Runner"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/build/ios/Debug-iphonesimulator/Runner.app/_CodeSignature/CodeResources"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/build/ios/Debug-iphonesimulator/Runner.app/_CodeSignature/CodeResources"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/build/ios/iphonesimulator/Runner.app/Frameworks/App.framework/App"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/build/ios/iphonesimulator/Runner.app/Frameworks/App.framework/App"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/build/ios/iphonesimulator/Runner.app/Frameworks/App.framework/_CodeSignature/CodeResources"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/build/ios/iphonesimulator/Runner.app/Frameworks/App.framework/_CodeSignature/CodeResources"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/build/ios/iphonesimulator/Runner.app/Frameworks/App.framework/flutter_assets/AssetManifest.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/build/ios/iphonesimulator/Runner.app/Frameworks/App.framework/flutter_assets/AssetManifest.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/build/ios/iphonesimulator/Runner.app/Frameworks/App.framework/flutter_assets/kernel_blob.bin"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/build/ios/iphonesimulator/Runner.app/Frameworks/App.framework/flutter_assets/kernel_blob.bin"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/build/ios/iphonesimulator/Runner.app/Runner"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/build/ios/iphonesimulator/Runner.app/Runner"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/build/ios/iphonesimulator/Runner.app/_CodeSignature/CodeResources"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/build/ios/iphonesimulator/Runner.app/_CodeSignature/CodeResources"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/lib/components/appbar_logo.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/lib/components/appbar_logo.dart"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/lib/login/login_page.dart"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/lib/screen/home/home_page.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/lib/screen/home/home_page.dart"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/pubspec.lock"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/pubspec.lock"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/pubspec.yaml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/pubspec.yaml"
afterDir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
...
...
.packages
View file @
cd551ef8
...
...
@@ -3,14 +3,16 @@
#
# For more info see: https://dart.dev/go/dot-packages-deprecation
#
# Generated by pub on 2022-03-03 10:
41:18.091146
.
# Generated by pub on 2022-03-03 10:
51:07.149011
.
async:file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.8.2/lib/
boolean_selector:file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/lib/
carousel_slider:file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/carousel_slider-4.0.0/lib/
characters:file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.2.0/lib/
charcode:file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.3.1/lib/
clock:file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.0/lib/
collection:file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.15.0/lib/
cupertino_icons:file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-1.0.4/lib/
dots_indicator:file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/dots_indicator-2.1.0/lib/
fake_async:file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.2.0/lib/
flutter:file:///Users/artza007/development/flutter/packages/flutter/lib/
flutter_lints:file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_lints-1.0.4/lib/
...
...
@@ -23,6 +25,7 @@ meta:file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.o
path:file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.0/lib/
rflutter_alert:file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/rflutter_alert-1.1.0/lib/
sky_engine:file:///Users/artza007/development/flutter/bin/cache/pkg/sky_engine/lib/
smooth_page_indicator:file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/smooth_page_indicator-1.0.0+2/lib/
source_span:file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.8.1/lib/
stack_trace:file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.10.0/lib/
stream_channel:file:///Users/artza007/development/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.1.0/lib/
...
...
lib/screen/home/home_page.dart
View file @
cd551ef8
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'package:nbt_app/components/appbar_logo.dart'
;
import
'package:carousel_slider/carousel_slider.dart'
;
import
'package:smooth_page_indicator/smooth_page_indicator.dart'
;
class
HomePage
extends
StatefulWidget
{
const
HomePage
({
Key
?
key
})
:
super
(
key:
key
);
...
...
@@ -9,7 +11,52 @@ class HomePage extends StatefulWidget {
_HomePageState
createState
()
=>
_HomePageState
();
}
class
CardItem
{
String
url
,
title
,
date
,
view
,
des
;
CardItem
(
{
required
this
.
url
,
required
this
.
title
,
required
this
.
date
,
required
this
.
view
,
required
this
.
des
});
}
List
<
CardItem
>
cardItems
=
[
CardItem
(
url:
'https://images.unsplash.com/photo-1643288178515-8b4ba815313a?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHwxMHx8fGVufDB8fHx8&auto=format&fit=crop&w=600&q=60'
,
title:
'title1'
,
date:
'15/05/20'
,
view:
'100'
,
des:
'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
),
CardItem
(
url:
'https://images.unsplash.com/photo-1640622658353-c6cecbe91488?ixlib=rb-1.2.1&ixid=MnwxMjA3fDF8MHxlZGl0b3JpYWwtZmVlZHwxMXx8fGVufDB8fHx8&auto=format&fit=crop&w=600&q=60'
,
title:
'title2'
,
date:
'20/06/20'
,
view:
'200'
,
des:
'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
),
CardItem
(
url:
'https://images.unsplash.com/photo-1638913974023-cef988e81629?ixlib=rb-1.2.1&ixid=MnwxMjA3fDF8MHxlZGl0b3JpYWwtZmVlZHwxNnx8fGVufDB8fHx8&auto=format&fit=crop&w=600&q=60'
,
title:
'title3'
,
date:
'54/20/20'
,
view:
'300'
,
des:
'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
),
CardItem
(
url:
'https://images.unsplash.com/photo-1638555063519-d009e6f3b28b?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHwyMnx8fGVufDB8fHx8&auto=format&fit=crop&w=600&q=60'
,
title:
'title4'
,
date:
'20/02/21'
,
view:
'400'
,
des:
'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
)
];
class
_HomePageState
extends
State
<
HomePage
>
{
int
activeIndex
=
0
;
List
list
=
[
1
,
2
,
3
,
4
,
5
];
@override
Widget
build
(
BuildContext
context
)
{
ScreenUtil
.
init
(
...
...
@@ -20,11 +67,610 @@ class _HomePageState extends State<HomePage> {
context:
context
,
minTextAdapt:
true
,
orientation:
Orientation
.
portrait
);
return
Scaffold
(
// backgroundColor: Color.fromRGBO(77, 32, 126, 1),
body:
Stack
(
children:
[],
body:
Column
(
children:
[
Stack
(
alignment:
Alignment
.
topCenter
,
children:
[
Container
(
color:
Color
.
fromRGBO
(
77
,
32
,
126
,
1
),
height:
60
.
h
,
),
CarouselSlider
(
options:
CarouselOptions
(
viewportFraction:
1.1
,
onPageChanged:
(
index
,
reason
)
=>
setState
(()
=>
activeIndex
=
index
)),
items:
cardItems
.
map
((
e
)
=>
MainSlide
()).
toList
())
]),
SizedBox
(
height:
12
,
),
Container
(
margin:
EdgeInsets
.
only
(
top:
10
),
child:
buildIndicator
()),
SizedBox
(
height:
17
,
),
Expanded
(
child:
SingleChildScrollView
(
child:
Container
(
padding:
EdgeInsets
.
only
(
left:
15
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Row
(
mainAxisAlignment:
MainAxisAlignment
.
start
,
children:
[
Text
(
'รายการยอดวิวสูง'
,
style:
TextStyle
(
fontSize:
38
,
fontFamily:
'DBHeavent'
),
),
SizedBox
(
width:
150
,
),
GestureDetector
(
onTap:
()
{},
child:
Text
(
'ดูทั้งหมด'
,
style:
TextStyle
(
fontSize:
22
,
color:
Color
.
fromRGBO
(
77
,
32
,
126
,
1
),
fontFamily:
'DBHeavent'
)),
),
],
),
Container
(
height:
180
,
child:
ListView
.
separated
(
padding:
EdgeInsets
.
only
(
top:
6
),
scrollDirection:
Axis
.
horizontal
,
itemCount:
cardItems
.
length
,
separatorBuilder:
(
context
,
position
)
=>
SizedBox
(
width:
10
,
),
itemBuilder:
(
context
,
index
)
{
return
buildCardImage
(
item:
cardItems
[
index
]);
}),
),
underline
(
20
,
20
),
Row
(
mainAxisAlignment:
MainAxisAlignment
.
start
,
children:
[
Text
(
'ข่าวเด็ดประเทศไทย'
,
style:
TextStyle
(
fontSize:
38
,
fontFamily:
'DBHeavent'
),
),
SizedBox
(
width:
143
,
),
GestureDetector
(
onTap:
()
{},
child:
Text
(
'ดูทั้งหมด'
,
style:
TextStyle
(
fontSize:
22
,
color:
Color
.
fromRGBO
(
77
,
32
,
126
,
1
),
fontFamily:
'DBHeavent'
)),
),
],
),
Container
(
width:
MediaQuery
.
of
(
context
).
size
.
width
,
height:
35
,
child:
ListView
.
separated
(
padding:
EdgeInsets
.
only
(
top:
6
),
scrollDirection:
Axis
.
horizontal
,
itemCount:
cardTitles
.
length
,
separatorBuilder:
(
context
,
position
)
=>
SizedBox
(
width:
5
,
),
itemBuilder:
(
context
,
index
)
{
return
buildCardTitle
(
item:
cardTitles
[
index
]);
}),
),
SizedBox
(
height:
20
,
),
Container
(
margin:
EdgeInsets
.
only
(
right:
15
),
height:
250
,
width:
MediaQuery
.
of
(
context
).
size
.
width
,
child:
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
10
),
child:
Image
.
network
(
'https://images.unsplash.com/photo-1580519542036-c47de6196ba5?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8NXx8bW9uZXl8ZW58MHx8MHx8&auto=format&fit=crop&w=600&q=60'
,
fit:
BoxFit
.
cover
,
))),
SizedBox
(
height:
5
,
),
Row
(
children:
[
Text
(
'20/02/21'
,
style:
TextStyle
(
color:
Colors
.
grey
.
shade500
,
fontSize:
15
),
),
SizedBox
(
width:
5
,
),
Icon
(
Icons
.
remove_red_eye
,
size:
13
,
color:
Colors
.
grey
.
shade500
,
),
SizedBox
(
width:
5
,
),
Text
(
'1000'
,
style:
TextStyle
(
color:
Colors
.
grey
.
shade500
,
fontSize:
15
),
),
],
),
Text
(
'ดีกรีแชมป์เจลีก! “ชนาธิป” ได้ล่ามคนใหม่ “นริศ” อดีตคู่หู “ธีราทร”'
,
style:
TextStyle
(
fontSize:
20
),
),
underline
(
20
,
20
),
Container
(
child:
ListView
.
builder
(
padding:
EdgeInsets
.
only
(
top:
5
),
scrollDirection:
Axis
.
vertical
,
shrinkWrap:
true
,
itemCount:
cardItems
.
length
,
itemBuilder:
(
context
,
index
)
{
return
buildRoundedCard
(
item:
cardItems
[
index
]);
}),
),
underline
(
20
,
20
),
Row
(
mainAxisAlignment:
MainAxisAlignment
.
start
,
children:
[
Text
(
'ข่าวล่าสุด'
,
style:
TextStyle
(
fontSize:
38
,
fontFamily:
'DBHeavent'
),
),
SizedBox
(
width:
237
,
),
GestureDetector
(
onTap:
()
{},
child:
Text
(
'ดูทั้งหมด'
,
style:
TextStyle
(
fontSize:
22
,
color:
Color
.
fromRGBO
(
77
,
32
,
126
,
1
),
fontFamily:
'DBHeavent'
)),
),
],
),
Container
(
height:
215
,
child:
ListView
.
separated
(
padding:
EdgeInsets
.
only
(
top:
6
),
scrollDirection:
Axis
.
horizontal
,
itemCount:
cardItems
.
length
,
separatorBuilder:
(
context
,
position
)
=>
SizedBox
(
width:
10
,
),
itemBuilder:
(
context
,
index
)
{
return
buildCardSubImage
(
item:
cardItems
[
index
]);
}),
),
underline
(
20
,
20
),
Row
(
mainAxisAlignment:
MainAxisAlignment
.
start
,
children:
[
Text
(
'ข่าวช่อง NBT'
,
style:
TextStyle
(
fontSize:
38
,
fontFamily:
'DBHeavent'
),
),
SizedBox
(
width:
200
,
),
GestureDetector
(
onTap:
()
{},
child:
Text
(
'ดูทั้งหมด'
,
style:
TextStyle
(
fontSize:
22
,
color:
Color
.
fromRGBO
(
77
,
32
,
126
,
1
),
fontFamily:
'DBHeavent'
)),
),
],
),
Container
(
height:
215
,
child:
ListView
.
separated
(
padding:
EdgeInsets
.
only
(
top:
6
),
scrollDirection:
Axis
.
horizontal
,
itemCount:
cardItems
.
length
,
separatorBuilder:
(
context
,
position
)
=>
SizedBox
(
width:
10
,
),
itemBuilder:
(
context
,
index
)
{
return
buildCardSubImage
(
item:
cardItems
[
index
]);
}),
),
underline
(
20
,
20
),
Row
(
mainAxisAlignment:
MainAxisAlignment
.
start
,
children:
[
Container
(
width:
320
,
child:
SingleChildScrollView
(
scrollDirection:
Axis
.
horizontal
,
child:
Text
(
'รายการทั้งหมดช่อง NBT Digital 2HD'
,
maxLines:
1
,
style:
TextStyle
(
fontSize:
38
,
fontFamily:
'DBHeavent'
),
),
),
),
SizedBox
(
width:
19
,
),
GestureDetector
(
onTap:
()
{},
child:
Text
(
'ดูทั้งหมด'
,
style:
TextStyle
(
fontSize:
22
,
color:
Color
.
fromRGBO
(
77
,
32
,
126
,
1
),
fontFamily:
'DBHeavent'
)),
),
],
),
Container
(
height:
180
,
child:
ListView
.
separated
(
padding:
EdgeInsets
.
only
(
top:
6
),
scrollDirection:
Axis
.
horizontal
,
itemCount:
cardItems
.
length
,
separatorBuilder:
(
context
,
position
)
=>
SizedBox
(
width:
10
,
),
itemBuilder:
(
context
,
index
)
{
return
buildCardImage
(
item:
cardItems
[
index
]);
}),
),
underline
(
20
,
20
),
Row
(
mainAxisAlignment:
MainAxisAlignment
.
start
,
children:
[
Text
(
'ข่าวประชาสัมพันธ์'
,
style:
TextStyle
(
fontSize:
38
,
fontFamily:
'DBHeavent'
),
),
SizedBox
(
width:
150
,
),
GestureDetector
(
onTap:
()
{},
child:
Text
(
'ดูทั้งหมด'
,
style:
TextStyle
(
fontSize:
22
,
color:
Color
.
fromRGBO
(
77
,
32
,
126
,
1
),
fontFamily:
'DBHeavent'
)),
),
],
),
Container
(
height:
215
,
child:
ListView
.
separated
(
padding:
EdgeInsets
.
only
(
top:
6
),
scrollDirection:
Axis
.
horizontal
,
itemCount:
cardItems
.
length
,
separatorBuilder:
(
context
,
position
)
=>
SizedBox
(
width:
10
,
),
itemBuilder:
(
context
,
index
)
{
return
buildCardSubImage
(
item:
cardItems
[
index
]);
}),
),
]),
),
),
),
],
),
);
}
Widget
buildIndicator
()
=>
AnimatedSmoothIndicator
(
activeIndex:
activeIndex
,
count:
cardItems
.
length
,
effect:
ScrollingDotsEffect
(
activeDotColor:
Color
.
fromRGBO
(
77
,
32
,
126
,
1
),
activeDotScale:
1
,
activeStrokeWidth:
1
,
maxVisibleDots:
5
,
dotHeight:
10
,
dotWidth:
10
),
);
}
Widget
buildCardImage
(
{
required
CardItem
item
})
=>
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Container
(
height:
120
,
width:
180
,
child:
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
10
),
child:
Image
.
network
(
item
.
url
,
fit:
BoxFit
.
cover
,
))),
Container
(
margin:
EdgeInsets
.
only
(
top:
5
),
child:
Row
(
children:
[
Text
(
item
.
date
,
style:
TextStyle
(
color:
Colors
.
grey
.
shade500
,
fontSize:
15
),
),
SizedBox
(
width:
5
,
),
Icon
(
Icons
.
remove_red_eye
,
size:
15
,
color:
Colors
.
grey
.
shade500
,
),
SizedBox
(
width:
5
,
),
Text
(
item
.
view
,
style:
TextStyle
(
color:
Colors
.
grey
.
shade500
,
fontSize:
15
),
),
],
),
),
Container
(
width:
180
,
child:
Text
(
item
.
title
,
softWrap:
false
,
style:
TextStyle
(
fontSize:
20
),
),
),
],
);
Widget
underline
(
double
top
,
double
bottom
)
{
return
Container
(
margin:
EdgeInsets
.
only
(
right:
15
,
top:
top
,
bottom:
bottom
),
decoration:
BoxDecoration
(
border:
Border
(
bottom:
BorderSide
(
color:
Colors
.
grey
.
shade300
,
width:
2
))),
);
}
class
CardTitle
{
String
title
;
CardTitle
({
required
this
.
title
});
}
List
<
CardTitle
>
cardTitles
=
[
CardTitle
(
title:
'#โควิท'
),
CardTitle
(
title:
'#การเมือง'
),
CardTitle
(
title:
'#เทคโนโลยี'
),
CardTitle
(
title:
'#ธรรมชาติ'
),
CardTitle
(
title:
'#ฟุตบอล'
),
CardTitle
(
title:
'#คุยถึงแก่น'
),
CardTitle
(
title:
'#สภาพอากาศ'
),
];
Widget
buildCardTitle
(
{
required
CardTitle
item
})
=>
Container
(
padding:
EdgeInsets
.
only
(
top:
3
,
left:
10
,
right:
10
),
decoration:
BoxDecoration
(
color:
Color
.
fromRGBO
(
241
,
229
,
253
,
1
),
borderRadius:
BorderRadius
.
circular
(
30
)),
child:
Text
(
item
.
title
,
style:
TextStyle
(
fontSize:
15
,
color:
Color
.
fromRGBO
(
77
,
37
,
124
,
1
)),
),
);
Widget
buildRoundedCard
(
{
required
CardItem
item
})
=>
Column
(
children:
[
Container
(
height:
100
,
child:
Row
(
children:
[
Container
(
width:
170
,
child:
Container
(
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
5
),
image:
DecorationImage
(
image:
NetworkImage
(
item
.
url
),
fit:
BoxFit
.
cover
)),
)),
Padding
(
padding:
EdgeInsets
.
only
(
left:
12
)),
Container
(
// color: Colors.yellow,
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Container
(
margin:
EdgeInsets
.
only
(
top:
7
),
child:
Row
(
children:
[
Text
(
item
.
date
,
style:
TextStyle
(
color:
Colors
.
grey
.
shade500
,
fontSize:
15
,
)),
SizedBox
(
width:
5
,
),
Icon
(
Icons
.
remove_red_eye
,
size:
13
,
color:
Colors
.
grey
.
shade500
,
),
SizedBox
(
width:
5
,
),
Text
(
item
.
view
,
style:
TextStyle
(
color:
Colors
.
grey
.
shade500
,
fontSize:
15
))
],
),
),
Container
(
height:
60
,
width:
214
,
child:
Text
(
'1 นาที กับงานกาชาด “ งานกาชาดออนไลน์ประจำปี 2564'
,
softWrap:
true
,
maxLines:
2
,
style:
TextStyle
(
fontSize:
25
,
fontFamily:
'DBHeavent'
,
height:
1
),
),
),
Container
(
child:
Row
(
children:
[
Icon
(
Icons
.
share
,
size:
15
,
color:
Color
.
fromRGBO
(
77
,
32
,
126
,
1
),
),
SizedBox
(
width:
10
,
),
Icon
(
Icons
.
favorite_border
,
size:
15
,
color:
Color
.
fromRGBO
(
77
,
32
,
126
,
1
))
],
),
)
],
),
),
],
),
),
SizedBox
(
height:
10
,
),
],
);
Widget
buildCardSubImage
(
{
required
CardItem
item
})
=>
Container
(
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Container
(
height:
160
,
width:
280
,
child:
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
10
),
child:
Image
.
network
(
item
.
url
,
fit:
BoxFit
.
cover
,
))),
Container
(
margin:
EdgeInsets
.
only
(
top:
5
),
child:
Row
(
children:
[
Text
(
item
.
date
,
style:
TextStyle
(
color:
Colors
.
grey
.
shade500
,
fontSize:
15
),
),
SizedBox
(
width:
5
,
),
Icon
(
Icons
.
remove_red_eye
,
size:
15
,
color:
Colors
.
grey
.
shade500
,
),
SizedBox
(
width:
5
,
),
Text
(
item
.
view
,
style:
TextStyle
(
color:
Colors
.
grey
.
shade500
,
fontSize:
15
),
),
],
),
),
Container
(
width:
280
,
child:
Text
(
item
.
title
,
softWrap:
false
,
maxLines:
1
,
style:
TextStyle
(
fontSize:
20
),
),
),
],
),
);
Widget
MainSlide
(
)
=>
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
15
),
child:
Stack
(
children:
[
Container
(
height:
250
.
h
,
width:
380
,
decoration:
BoxDecoration
(
image:
DecorationImage
(
image:
NetworkImage
(
'https://images.unsplash.com/photo-1646061632529-b552ea07b50b?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHw0MXx8fGVufDB8fHx8&auto=format&fit=crop&w=600&q=60'
),
fit:
BoxFit
.
cover
)),
),
Positioned
(
bottom:
0.0
,
left:
0.0
,
right:
0.0
,
child:
Container
(
height:
130
,
decoration:
BoxDecoration
(
gradient:
LinearGradient
(
colors:
[
Color
.
fromARGB
(
200
,
0
,
0
,
0
),
Color
.
fromARGB
(
0
,
0
,
0
,
0
)
],
begin:
Alignment
.
bottomCenter
,
end:
Alignment
.
topCenter
,
),
),
padding:
EdgeInsets
.
only
(
top:
45
,
left:
25
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Text
(
'TITLE'
,
style:
TextStyle
(
fontSize:
30
,
color:
Colors
.
white
,
fontFamily:
'DBHeavent'
),
),
Row
(
children:
[
Expanded
(
child:
Text
(
'Description'
,
maxLines:
1
,
style:
TextStyle
(
fontSize:
25
,
color:
Colors
.
white
,
fontFamily:
'DBHeavent'
,
height:
1
,
),
),
),
],
)
]),
)),
],
),
);
lib/screen/notification/FavouriteList_Page.dart
0 → 100644
View file @
cd551ef8
import
'package:flutter/material.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
class
FavouriteListPage
extends
StatefulWidget
{
const
FavouriteListPage
({
Key
?
key
})
:
super
(
key:
key
);
@override
State
<
FavouriteListPage
>
createState
()
=>
_FavouriteListPageState
();
}
class
_FavouriteListPageState
extends
State
<
FavouriteListPage
>
{
@override
Widget
build
(
BuildContext
context
)
{
ScreenUtil
.
init
(
BoxConstraints
(
maxWidth:
MediaQuery
.
of
(
context
).
size
.
width
,
maxHeight:
MediaQuery
.
of
(
context
).
size
.
height
),
designSize:
Size
(
360
,
690
),
context:
context
,
minTextAdapt:
true
,
orientation:
Orientation
.
portrait
);
return
MaterialApp
(
debugShowCheckedModeBanner:
false
,
home:
Scaffold
(
appBar:
AppBar
(
elevation:
0.55
,
shadowColor:
Color
.
fromRGBO
(
77
,
32
,
126
,
1
),
bottomOpacity:
0
,
backgroundColor:
Color
.
fromRGBO
(
77
,
32
,
126
,
1
),
toolbarHeight:
80
.
h
,
title:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
start
,
children:
[
Container
(
margin:
EdgeInsets
.
only
(
top:
10
),
child:
GestureDetector
(
onTap:
()
{
Navigator
.
pop
(
context
);
},
child:
Icon
(
Icons
.
arrow_back_ios
))),
SizedBox
(
width:
110
,
),
Container
(
margin:
EdgeInsets
.
only
(
top:
10
),
child:
Text
(
'รายการโปรด'
,
style:
TextStyle
(
fontFamily:
'DBHeavent'
,
fontSize:
30
,
color:
Colors
.
white
),
),
)
],
),
),
body:
Container
(
width:
MediaQuery
.
of
(
context
).
size
.
width
,
height:
MediaQuery
.
of
(
context
).
size
.
height
,
child:
Stack
(
alignment:
AlignmentDirectional
.
topStart
,
children:
[
Container
(
color:
Color
.
fromRGBO
(
77
,
32
,
126
,
1
),
height:
60
.
h
,
)
]))));
}
}
lib/screen/notification/notification_page.dart
0 → 100644
View file @
cd551ef8
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'package:nbt_app/components/appbar_logo.dart'
;
class
NotificationPage
extends
StatefulWidget
{
const
NotificationPage
({
Key
?
key
})
:
super
(
key:
key
);
@override
_NotificationPageState
createState
()
=>
_NotificationPageState
();
}
class
_NotificationPageState
extends
State
<
NotificationPage
>
{
@override
Widget
build
(
BuildContext
context
)
{
ScreenUtil
.
init
(
BoxConstraints
(
maxWidth:
MediaQuery
.
of
(
context
).
size
.
width
,
maxHeight:
MediaQuery
.
of
(
context
).
size
.
height
),
designSize:
Size
(
360
,
690
),
context:
context
,
minTextAdapt:
true
,
orientation:
Orientation
.
portrait
);
return
MaterialApp
(
debugShowCheckedModeBanner:
false
,
home:
Scaffold
(
appBar:
AppBar
(
elevation:
0.55
,
shadowColor:
Color
.
fromRGBO
(
77
,
32
,
126
,
1
),
bottomOpacity:
0
,
backgroundColor:
Color
.
fromRGBO
(
77
,
32
,
126
,
1
),
toolbarHeight:
80
.
h
,
title:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
start
,
children:
[
Container
(
margin:
EdgeInsets
.
only
(
top:
10
),
child:
GestureDetector
(
onTap:
()
{
Navigator
.
pop
(
context
);
},
child:
Icon
(
Icons
.
arrow_back_ios
))),
SizedBox
(
width:
115
,
),
Container
(
margin:
EdgeInsets
.
only
(
top:
10
),
child:
Text
(
'การแจ้งเตือน'
,
style:
TextStyle
(
fontFamily:
'DBHeavent'
,
fontSize:
30
,
color:
Colors
.
white
),
),
)
],
),
),
body:
Container
(
width:
MediaQuery
.
of
(
context
).
size
.
width
,
height:
MediaQuery
.
of
(
context
).
size
.
height
,
child:
Stack
(
alignment:
AlignmentDirectional
.
topStart
,
children:
[
Container
(
color:
Color
.
fromRGBO
(
77
,
32
,
126
,
1
),
height:
60
.
h
,
),
ListView
.
separated
(
scrollDirection:
Axis
.
vertical
,
itemBuilder:
(
context
,
index
)
{
return
buildCard
(
item:
listitem
[
index
]);
},
separatorBuilder:
(
context
,
position
)
=>
SizedBox
(
height:
10
,
),
itemCount:
listitem
.
length
),
]),
),
));
}
}
Widget
buildCard
(
{
required
Model
item
})
=>
Container
(
child:
Column
(
children:
[
Container
(
height:
100
,
width:
385
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
15
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
Colors
.
black
.
withOpacity
(
0.14
),
spreadRadius:
0.5
,
blurRadius:
6
,
offset:
Offset
(
0
,
3
))
]),
child:
Row
(
children:
[
SizedBox
(
width:
10
,
),
Container
(
width:
125
,
height:
80
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
5
),
image:
DecorationImage
(
image:
NetworkImage
(
item
.
image
),
fit:
BoxFit
.
cover
)),
),
SizedBox
(
width:
15
,
),
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Container
(
height:
70
,
padding:
EdgeInsets
.
only
(
top:
7
),
width:
220
,
// color: Colors.red,
child:
Text
(
item
.
title
,
maxLines:
2
,
softWrap:
true
,
style:
TextStyle
(
fontFamily:
'DHeavent'
,
fontSize:
18
,
height:
1.3
),
),
),
Container
(
margin:
EdgeInsets
.
only
(
top:
0
),
child:
Text
(
item
.
time
,
style:
TextStyle
(
height:
1
,
fontFamily:
'DHeavent'
,
fontSize:
13
,
color:
Color
.
fromRGBO
(
77
,
32
,
126
,
1
)),
),
)
],
)
],
),
)
],
),
);
class
Model
{
String
image
,
title
,
time
;
Model
({
required
this
.
image
,
required
this
.
title
,
required
this
.
time
});
}
List
<
Model
>
listitem
=
[
Model
(
image:
'https://images.unsplash.com/photo-1645894183288-9c43d07958fa?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHw2Mnx8fGVufDB8fHx8&auto=format&fit=crop&w=600&q=60'
,
title:
'รายการคุยถึงแก่นได้ Update วิดีโอตอนใหม่แล้ว'
,
time:
'15 นาทีที่ผ่านมา'
),
Model
(
image:
'https://images.unsplash.com/photo-1645894183288-9c43d07958fa?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHw2Mnx8fGVufDB8fHx8&auto=format&fit=crop&w=600&q=60'
,
title:
'รายการคุยถึงแก่นได้ Update วิดีโอตอนใหม่แล้ว'
,
time:
'15 นาทีที่ผ่านมา'
),
Model
(
image:
'https://images.unsplash.com/photo-1645894183288-9c43d07958fa?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHw2Mnx8fGVufDB8fHx8&auto=format&fit=crop&w=600&q=60'
,
title:
'รายการคุยถึงแก่นได้ Update วิดีโอตอนใหม่แล้ว'
,
time:
'15 นาทีที่ผ่านมา'
),
Model
(
image:
'https://images.unsplash.com/photo-1645894183288-9c43d07958fa?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHw2Mnx8fGVufDB8fHx8&auto=format&fit=crop&w=600&q=60'
,
title:
'รายการคุยถึงแก่นได้ Update วิดีโอตอนใหม่แล้ว'
,
time:
'15 นาทีที่ผ่านมา'
,
),
];
pubspec.lock
View file @
cd551ef8
...
...
@@ -15,6 +15,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
carousel_slider:
dependency: "direct main"
description:
name: carousel_slider
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.0"
characters:
dependency: transitive
description:
...
...
@@ -50,6 +57,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.4"
dots_indicator:
dependency: "direct main"
description:
name: dots_indicator
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
fake_async:
dependency: transitive
description:
...
...
@@ -128,6 +142,13 @@ packages:
description: flutter
source: sdk
version: "0.0.99"
smooth_page_indicator:
dependency: "direct main"
description:
name: smooth_page_indicator
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0+2"
source_span:
dependency: transitive
description:
...
...
pubspec.yaml
View file @
cd551ef8
...
...
@@ -34,6 +34,9 @@ dependencies:
flutter_screenutil
:
^5.3.1
rflutter_alert
:
^1.1.0
flutter_slider_drawer
:
^2.1.1
dots_indicator
:
^2.1.0
carousel_slider
:
^4.0.0
smooth_page_indicator
:
^1.0.0+2
dev_dependencies
:
flutter_test
:
...
...
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