Commit 5dc773f4 by Nuttee

update program ui screen

parent b02b71a1
{
"configVersion": 2,
"packages": [
{
"name": "async",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.8.2",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "boolean_selector",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "carousel_slider",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/carousel_slider-4.0.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "characters",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.2.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "charcode",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.3.1",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "clock",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "collection",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.15.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "cupertino_icons",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-1.0.4",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "dots_indicator",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/dots_indicator-2.1.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "fake_async",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.2.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "flutter",
"rootUri": "file:///C:/src/flutter/packages/flutter",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "flutter_lints",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_lints-1.0.4",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "flutter_screenutil",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_screenutil-5.3.1",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "flutter_slider_drawer",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_slider_drawer-2.1.1",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "flutter_test",
"rootUri": "file:///C:/src/flutter/packages/flutter_test",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "lints",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/lints-1.0.1",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "matcher",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.11",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "material_color_utilities",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/material_color_utilities-0.1.3",
"packageUri": "lib/",
"languageVersion": "2.13"
},
{
"name": "meta",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.7.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "path",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "rflutter_alert",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/rflutter_alert-1.1.0",
"packageUri": "lib/",
"languageVersion": "2.7"
},
{
"name": "sky_engine",
"rootUri": "file:///C:/src/flutter/bin/cache/pkg/sky_engine",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "smooth_page_indicator",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/smooth_page_indicator-1.0.0+2",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "source_span",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.8.1",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "stack_trace",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.10.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "stream_channel",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.1.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "string_scanner",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.1.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "term_glyph",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.2.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "test_api",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.4.8",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "typed_data",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/typed_data-1.3.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "vector_math",
"rootUri": "file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.1",
"packageUri": "lib/",
"languageVersion": "2.14"
},
{
"name": "nbt_app",
"rootUri": "../",
"packageUri": "lib/",
"languageVersion": "2.15"
}
],
"generated": "2022-03-15T05:28:58.719814Z",
"generator": "pub",
"generatorVersion": "2.16.1"
}
async
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.8.2/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.8.2/lib/
boolean_selector
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/lib/
carousel_slider
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/carousel_slider-4.0.0/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/carousel_slider-4.0.0/lib/
characters
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.2.0/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.2.0/lib/
charcode
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.3.1/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.3.1/lib/
clock
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.0/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.0/lib/
collection
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.15.0/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.15.0/lib/
cupertino_icons
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-1.0.4/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-1.0.4/lib/
dots_indicator
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/dots_indicator-2.1.0/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/dots_indicator-2.1.0/lib/
fake_async
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.2.0/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.2.0/lib/
flutter_lints
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_lints-1.0.4/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_lints-1.0.4/lib/
flutter_screenutil
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_screenutil-5.3.1/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_screenutil-5.3.1/lib/
flutter_slider_drawer
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_slider_drawer-2.1.1/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_slider_drawer-2.1.1/lib/
lints
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/lints-1.0.1/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/lints-1.0.1/lib/
matcher
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.11/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.11/lib/
material_color_utilities
2.13
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/material_color_utilities-0.1.3/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/material_color_utilities-0.1.3/lib/
meta
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.7.0/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.7.0/lib/
path
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.0/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.0/lib/
rflutter_alert
2.7
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/rflutter_alert-1.1.0/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/rflutter_alert-1.1.0/lib/
smooth_page_indicator
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/smooth_page_indicator-1.0.0+2/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/smooth_page_indicator-1.0.0+2/lib/
source_span
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.8.1/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.8.1/lib/
stack_trace
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.10.0/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.10.0/lib/
stream_channel
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.1.0/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.1.0/lib/
string_scanner
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.1.0/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.1.0/lib/
term_glyph
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.2.0/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.2.0/lib/
test_api
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.4.8/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.4.8/lib/
typed_data
2.12
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/typed_data-1.3.0/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/typed_data-1.3.0/lib/
vector_math
2.14
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.1/
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.1/lib/
sky_engine
2.12
file:///C:/src/flutter/bin/cache/pkg/sky_engine/
file:///C:/src/flutter/bin/cache/pkg/sky_engine/lib/
flutter
2.12
file:///C:/src/flutter/packages/flutter/
file:///C:/src/flutter/packages/flutter/lib/
flutter_test
2.12
file:///C:/src/flutter/packages/flutter_test/
file:///C:/src/flutter/packages/flutter_test/lib/
nbt_app
2.15
file:///D:/2fellows/NBT_APP-1/
file:///D:/2fellows/NBT_APP-1/lib/
2
2.10.3
\ No newline at end of file
# This file is deprecated. Tools should instead consume
# `.dart_tool/package_config.json`.
#
# For more info see: https://dart.dev/go/dot-packages-deprecation
#
# Generated by pub on 2022-03-15 12:28:58.705851.
async:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.8.2/lib/
boolean_selector:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/lib/
carousel_slider:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/carousel_slider-4.0.0/lib/
characters:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.2.0/lib/
charcode:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.3.1/lib/
clock:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.0/lib/
collection:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.15.0/lib/
cupertino_icons:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-1.0.4/lib/
dots_indicator:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/dots_indicator-2.1.0/lib/
fake_async:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.2.0/lib/
flutter:file:///C:/src/flutter/packages/flutter/lib/
flutter_lints:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_lints-1.0.4/lib/
flutter_screenutil:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_screenutil-5.3.1/lib/
flutter_slider_drawer:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_slider_drawer-2.1.1/lib/
flutter_test:file:///C:/src/flutter/packages/flutter_test/lib/
lints:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/lints-1.0.1/lib/
matcher:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.11/lib/
material_color_utilities:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/material_color_utilities-0.1.3/lib/
meta:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.7.0/lib/
path:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.0/lib/
rflutter_alert:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/rflutter_alert-1.1.0/lib/
sky_engine:file:///C:/src/flutter/bin/cache/pkg/sky_engine/lib/
smooth_page_indicator:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/smooth_page_indicator-1.0.0+2/lib/
source_span:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.8.1/lib/
stack_trace:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.10.0/lib/
stream_channel:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.1.0/lib/
string_scanner:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.1.0/lib/
term_glyph:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.2.0/lib/
test_api:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.4.8/lib/
typed_data:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/typed_data-1.3.0/lib/
vector_math:file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.1/lib/
nbt_app:lib/
......@@ -40,14 +40,14 @@ class _AppBarLogoState extends State<AppBarLogo> {
@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);
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 PreferredSize(
preferredSize: Size.fromHeight(80),
......@@ -60,8 +60,9 @@ class _AppBarLogoState extends State<AppBarLogo> {
title: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expanded(child: SizedBox()),
SizedBox(
width: 100.w,
width: 10.w,
),
Image.asset(
'assets/images/title_logo.png',
......@@ -69,9 +70,7 @@ class _AppBarLogoState extends State<AppBarLogo> {
height: 80,
width: 80,
),
SizedBox(
width: 50.w,
),
Expanded(child: SizedBox()),
GestureDetector(
onTap: () {
setState(() {
......
import 'package:flutter/material.dart';
import 'package:nbt_app/components/drawer.dart';
import 'package:nbt_app/screen/home/home_page.dart';
import 'package:nbt_app/screen/home/home_search.dart';
import 'package:nbt_app/screen/notification/notification_page.dart';
class TvOnlinePage extends StatefulWidget {
const TvOnlinePage({ Key? key }) : super(key: key);
......@@ -18,11 +21,42 @@ class _TvOnlinePageState extends State<TvOnlinePage> {
bottomOpacity: 0,
backgroundColor: Color.fromRGBO(77, 32, 126, 1),
toolbarHeight: 80,
title: const Text('ทีวีออนไลน์',
style: TextStyle(fontFamily: 'DBHeavent',fontSize: 28),
),
title: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expanded(child: SizedBox()),
SizedBox(
width: 10.0,
),
const Text('ทีวีออนไลน์',
style: TextStyle(fontFamily: 'DBHeavent',fontSize: 28),
),
Expanded(child: SizedBox()),
GestureDetector(
onTap: () {
setState(() {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => NotificationPage()));
});
},
child: Icon(Icons.notifications_none),
),
SizedBox(width: 10.0),
GestureDetector(
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => const HomeSearchPage()));
},
child: Icon(Icons.search)),
],
),
centerTitle: true,
),
drawer: NBTDrawer(),
body: SingleChildScrollView(
child: Column(
children: [
......
......@@ -2,6 +2,8 @@ import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:nbt_app/components/appbar_logo.dart';
import 'package:nbt_app/components/appbar_title.dart';
import 'package:nbt_app/components/drawer.dart';
import 'package:nbt_app/screen/home/home_search.dart';
import 'package:nbt_app/screen/notification/notification_page.dart';
import '../home/home_page.dart';
......@@ -33,11 +35,42 @@ class _NewsPageState extends State<NewsPage> {
bottomOpacity: 0,
backgroundColor: Color.fromRGBO(77, 32, 126, 1),
toolbarHeight: 80,
title: const Text('ข่าว',
style: TextStyle(fontFamily: 'DBHeavent',fontSize: 28),
),
title: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expanded(child: SizedBox()),
SizedBox(
width: 10.0,
),
const Text('ข่าว',
style: TextStyle(fontFamily: 'DBHeavent',fontSize: 28),
),
Expanded(child: SizedBox()),
GestureDetector(
onTap: () {
setState(() {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => NotificationPage()));
});
},
child: Icon(Icons.notifications_none),
),
SizedBox(width: 10.0),
GestureDetector(
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => const HomeSearchPage()));
},
child: Icon(Icons.search)),
],
),
centerTitle: true,
),
drawer: NBTDrawer(),
body: SingleChildScrollView(
child: Column(children: [
Stack(alignment: Alignment.topCenter, children: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment