Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
225a47e
Card表示読み込み
Oct 31, 2020
628b41f
Cardのデザインを表示させる
Oct 31, 2020
d0d135e
不要なコード削除
Oct 31, 2020
e98afe9
CardにFlutterLogoを表示させる
Oct 31, 2020
ae3ef44
Listを11件まで表示する
Oct 31, 2020
d59f9ac
AppBarにボタンを表示させる
Nov 3, 2020
f5acdeb
画面遷移をまとめるフォルダの追加
Nov 3, 2020
49d0a8b
新規画面作成
Nov 3, 2020
944b7c1
assetsファイルを作成し、画像を追加
Nov 3, 2020
42d7534
modelファイル作成
Nov 3, 2020
e8ff472
Instuctorクラスの作成
Nov 3, 2020
bc3718f
画像と星+ランキング数表示
Nov 6, 2020
c83c10b
画像詳細画面の新規作成
Nov 8, 2020
a2ae0c4
画面詳細への遷移ロジック更新
Nov 8, 2020
ecd5d42
リネーム更新
Nov 8, 2020
53336c3
SmoothStarRatingの追加
Nov 8, 2020
3abe184
リファクアリング
Nov 8, 2020
73d9fa6
詳細画面のテキスト追加
Nov 8, 2020
7ca4a61
テキストの追加
Nov 8, 2020
46381e7
右下の枠を追加
Nov 8, 2020
b5c4a7d
一旦画像表示部分領域をコメントアウトで記載
Nov 8, 2020
489b93d
詳細画面のトップに戻るボタンとお気に入りボタンを追加
Nov 8, 2020
3b1bde5
リスト画面を変更
Nov 8, 2020
dc2e7fa
no message
Nov 8, 2020
4c82ef7
画面遷移先の追加
Nov 8, 2020
d8751fb
ファイル先の変更
Nov 8, 2020
00ee8f6
ファイル先の変更
Nov 8, 2020
b7e5cc6
新規ファイルの追加
Nov 8, 2020
333e30f
BottomNavigationBarの追加
Nov 8, 2020
35b9abf
buttomNavigationの選択で表示する画面を追加
Nov 8, 2020
16b2585
背景ピンクのfilterアイコンを追加
Nov 8, 2020
58841bf
ヘッダー部分のデザイン完了
Nov 8, 2020
1e132c5
画像の追加
Nov 8, 2020
d6fa91b
画像表示
Nov 8, 2020
606312b
コンテンツの追加
Nov 8, 2020
77d51f6
詳細画面の追加
Nov 8, 2020
b99622c
画面遷移ロジックの追加
Nov 8, 2020
8fff4c9
新規画面の追加
Nov 10, 2020
5647db9
BottomNavigationBarの追加
Nov 10, 2020
6b73fcf
BottomNavigationBarの初期値
Nov 10, 2020
71aa17e
動的にBottonNavigatioonBarが動くようになる
Nov 10, 2020
c082962
背景色変更をコメントアウトで記載
Nov 10, 2020
87b7855
設定画面の変更
Nov 10, 2020
11e0b50
ListViewをhome.dartに移行
Nov 10, 2020
3e81cc6
BottomNavigationBarのファイルとして再構築
Nov 10, 2020
5d4e9c3
ToggleButtonの表示
Nov 11, 2020
69cccf0
画面名の変更
Nov 14, 2020
0e22bbd
画面名の変更
Nov 14, 2020
0f27097
画面名と画面遷移先の更新
Nov 14, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/images/a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/jp1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/jp2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/jp3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/jp4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/jp5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/jp6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ios/Flutter/Debug.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"
1 change: 1 addition & 0 deletions ios/Flutter/Release.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
41 changes: 41 additions & 0 deletions ios/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}

def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end

File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
use_frameworks!
use_modular_headers!

flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end
105 changes: 105 additions & 0 deletions lib/buttomNavigation.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
import 'package:flutter/material.dart';
import 'package:flutter_list_app/buttomView/home.dart';
import 'buttomView/setting.dart';

class ButtomNavigation extends StatelessWidget {
final int pageIndex;

ButtomNavigation(this.pageIndex);

final List<Widget> _pageLinks = [
Home(),
Setting(),
];



@override
Widget build(BuildContext context) {

return BottomNavigationBar(
type: BottomNavigationBarType.fixed,
currentIndex: pageIndex,
items: [
BottomNavigationBarItem(
title: Text(
'ホーム'
// Strings.PROFILE_PAGE_TITLE,
// style: textSize,
),
icon: tabBarIcon(Icons.filter_list),
activeIcon: tabBarIcon(Icons.filter_list, color: Colors.white),
),
BottomNavigationBarItem(
title: Text(
'ホーム2'
// Strings.COMMUNITY_PAGE_TITLE,
// style: text
),
icon: tabBarIcon(Icons.filter_list),
activeIcon: tabBarIcon(Icons.filter_list, color: Colors.white),
),
BottomNavigationBarItem(
title: Text(
'ホーム3'
// Strings.SHARE_PAGE_TITLE,
// style: textSize,
),
icon: tabBarIcon(Icons.filter_list),
activeIcon: tabBarIcon(Icons.filter_list, color: Colors.white),
),
BottomNavigationBarItem(
title: Text(
'ホーム4'
// Strings.NOTIFICATION_PAGE_TITLE,
// style: textSize,
),
),
BottomNavigationBarItem(
title: Text(
'ホーム5'
// Strings.SETTING_PAGE_TITLE,
// style: textSize,
),
icon: tabBarIcon(Icons.filter_list),
activeIcon: tabBarIcon(Icons.filter_list, color: Colors.white),
),
],
onTap: (tappedIndex) async {
Navigator.pushReplacement(
context,
quickPageRoute(_pageLinks[tappedIndex]),
);
},
);
}

tabBarIcon(pathIcon, {Color color}) {
return Container(
width: 10,
height: 10,
child: Center(
child: SizedBox.fromSize(
child: Icon(Icons.filter_list, color: Colors.white),
),
),
);
}

final quickPageRoute = (Widget widget) => PageRouteBuilder<dynamic>(
pageBuilder: (BuildContext context, Animation<double> animation,
Animation<double> secondaryAnimation) {
return widget;
},
transitionsBuilder: (BuildContext context, Animation<double> animation,
Animation<double> secondaryAnimation, Widget child) {
return new SlideTransition(
position: new Tween(begin: Offset.zero, end: Offset.zero)
.animate(const AlwaysStoppedAnimation<double>(1.0)),
child: child,
);
},
);
}


77 changes: 77 additions & 0 deletions lib/buttomView/home.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@

import 'package:flutter/material.dart';
import 'package:flutter_list_app/instructor/list_instructor.dart';

import '../novel_design.dart';
import '../single_scroll_screen.dart';

class Home extends StatelessWidget {
int _tabIndex;

@override
void initState() {
_tabIndex = 0;
}

@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Form',
home: Scaffold(
appBar: AppBar(
title: Text('Home'),
),
body: ListView(
children: <Widget>[
GestureDetector(
child: Card(
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 8),
child: Text('ListView & Row & Padding', style: TextStyle(fontSize: 18)),
),
),
onTap: (){
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => ListimstrutorPage(),
),
);
},
),
GestureDetector(
child: Card(
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 8),
child: Text('DashbordPage: Column & Container', style: TextStyle(fontSize: 18)),
),
),
onTap: (){
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => NovelDesign(),
),
);
},
),
GestureDetector(
child: Card(
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 8),
child: Text('Side-scrolling', style: TextStyle(fontSize: 18)),
),
),
onTap: (){
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => SingleChildScreen(),
),
);
},
),
],
),
),
);
}
}

53 changes: 53 additions & 0 deletions lib/buttomView/setting.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import 'package:flutter/material.dart';

class Setting extends StatefulWidget {
@override
_settingPageState createState() => _settingPageState();
}

class _settingPageState extends State<Setting> {
var index = 1;
List<bool> isSelected = List.generate(2, (_) => false);

@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: ToggleButtons(
borderColor: Colors.white,
fillColor: Colors.white,
borderWidth: 2,
selectedBorderColor: Colors.white,
selectedColor: Colors.grey,
borderRadius: BorderRadius.circular(30),
children: <Widget>[
Padding(
padding: const EdgeInsets.all(8.0),
child: Text(
'登録順',
style: TextStyle(fontSize: 16),
),
),
Padding(
padding: const EdgeInsets.all(8.0),
child: Text(
'講義別',
style: TextStyle(fontSize: 16),
),
),
],
onPressed: (int index) {
setState(() {
// isSelected[index] = !isSelected[index];
for (int i = 0; i < isSelected.length; i++) {
isSelected[i] = i == index;
}

});
},
isSelected: isSelected,
),
),
);
}
}
22 changes: 22 additions & 0 deletions lib/card_list.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import 'package:flutter/material.dart';

class CardList extends StatelessWidget {
final String _text;

CardList(this._text);

@override
Widget build(BuildContext context) {
return Card(
child: Column(mainAxisSize: MainAxisSize.max, children: <Widget>[
ListTile(
leading: FlutterLogo(),
title: Text(_text),
subtitle: Text(
"This is subtitle. Subtitle is very long and use three lines."),
selected: true,
)
]),
);
}
}
Loading