-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from NUTFes/feature/imai/86-add-first-second-day
[feature]当日の一日目と二日目のタブを追加(#86)
- Loading branch information
Showing
7 changed files
with
205 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import 'dart:developer'; | ||
|
||
import 'package:seeft_mobile/configs/importer.dart'; | ||
import 'package:flutter_local_notifications/flutter_local_notifications.dart'; | ||
import 'package:http/http.dart' as http; | ||
|
||
class MyShiftPageCurrentSecondDay extends StatefulWidget { | ||
@override | ||
_MyShiftPageState createState() => _MyShiftPageState(); | ||
} | ||
|
||
class _MyShiftPageState extends State<MyShiftPageCurrentSecondDay> { | ||
// notification関連をinitStateに書き出さなきゃいけないので書いてたけどutilとかに書いてもいいかもね | ||
|
||
// FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin; | ||
// NotificationDetails platformChannelSpecifics; | ||
|
||
@override | ||
void initState() { | ||
super.initState(); | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
final Size size = MediaQuery.of(context).size; | ||
return FutureBuilder( | ||
future: getData(), | ||
builder: (ctx, snapshot) { | ||
if (snapshot.connectionState == AsyncSnapshot.waiting()) { | ||
logger.w("message"); | ||
} | ||
if (!snapshot.hasData) { | ||
return CircularProgressIndicator(); | ||
} | ||
return Container( | ||
padding: const EdgeInsets.all(40.0), | ||
child: SingleChildScrollView( | ||
child: Column( | ||
children: <Widget>[ | ||
Container( | ||
// height: size.height - 200, | ||
// width: size.width - 80, | ||
// padding: const EdgeInsets.all(10.0), | ||
// decoration: BoxDecoration( | ||
// border: Border.all(color: Colors.black), | ||
// ), | ||
// child: _contents(size, snapshot.data)), | ||
child: table.shiftTable(snapshot.data, context)), | ||
], | ||
), | ||
)); | ||
}, | ||
); | ||
} | ||
} | ||
|
||
Future getData() async { | ||
try { | ||
var userID = await store.getUserID(); | ||
var res = await api.getMyShiftCurrentDay(userID.toString()); | ||
return res; | ||
} catch (err) { | ||
logger.e('don`t response. error message: $err'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import 'dart:developer'; | ||
|
||
import 'package:seeft_mobile/configs/importer.dart'; | ||
import 'package:flutter_local_notifications/flutter_local_notifications.dart'; | ||
import 'package:http/http.dart' as http; | ||
|
||
class MyShiftPageCurrentSecondDayRainy extends StatefulWidget { | ||
@override | ||
_MyShiftPageState createState() => _MyShiftPageState(); | ||
} | ||
|
||
class _MyShiftPageState extends State<MyShiftPageCurrentSecondDayRainy> { | ||
// notification関連をinitStateに書き出さなきゃいけないので書いてたけどutilとかに書いてもいいかもね | ||
|
||
// FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin; | ||
// NotificationDetails platformChannelSpecifics; | ||
|
||
@override | ||
void initState() { | ||
super.initState(); | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
final Size size = MediaQuery.of(context).size; | ||
return FutureBuilder( | ||
future: getData(), | ||
builder: (ctx, snapshot) { | ||
if (snapshot.connectionState == AsyncSnapshot.waiting()) { | ||
logger.w("message"); | ||
} | ||
if (!snapshot.hasData) { | ||
return CircularProgressIndicator(); | ||
} | ||
return Container( | ||
padding: const EdgeInsets.all(40.0), | ||
child: SingleChildScrollView( | ||
child: Column( | ||
children: <Widget>[ | ||
Container( | ||
// height: size.height - 200, | ||
// width: size.width - 80, | ||
// padding: const EdgeInsets.all(10.0), | ||
// decoration: BoxDecoration( | ||
// border: Border.all(color: Colors.black), | ||
// ), | ||
// child: _contents(size, snapshot.data)), | ||
child: table.shiftTable(snapshot.data, context)), | ||
], | ||
), | ||
)); | ||
}, | ||
); | ||
} | ||
} | ||
|
||
Future getData() async { | ||
try { | ||
var userID = await store.getUserID(); | ||
var res = await api.getMyShiftCurrentDayRainy(userID.toString()); | ||
return res; | ||
} catch (err) { | ||
logger.e('don`t response. error message: $err'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import 'dart:developer'; | ||
|
||
import 'package:seeft_mobile/configs/importer.dart'; | ||
import 'package:flutter_local_notifications/flutter_local_notifications.dart'; | ||
import 'package:http/http.dart' as http; | ||
|
||
class MyShiftPageCurrentSecondDaySunny extends StatefulWidget { | ||
@override | ||
_MyShiftPageState createState() => _MyShiftPageState(); | ||
} | ||
|
||
class _MyShiftPageState extends State<MyShiftPageCurrentSecondDaySunny> { | ||
// notification関連をinitStateに書き出さなきゃいけないので書いてたけどutilとかに書いてもいいかもね | ||
|
||
// FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin; | ||
// NotificationDetails platformChannelSpecifics; | ||
|
||
@override | ||
void initState() { | ||
super.initState(); | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
final Size size = MediaQuery.of(context).size; | ||
return FutureBuilder( | ||
future: getData(), | ||
builder: (ctx, snapshot) { | ||
if (snapshot.connectionState == AsyncSnapshot.waiting()) { | ||
logger.w("message"); | ||
} | ||
if (!snapshot.hasData) { | ||
return CircularProgressIndicator(); | ||
} | ||
return Container( | ||
padding: const EdgeInsets.all(40.0), | ||
child: SingleChildScrollView( | ||
child: Column( | ||
children: <Widget>[ | ||
Container( | ||
// height: size.height - 200, | ||
// width: size.width - 80, | ||
// padding: const EdgeInsets.all(10.0), | ||
// decoration: BoxDecoration( | ||
// border: Border.all(color: Colors.black), | ||
// ), | ||
// child: _contents(size, snapshot.data)), | ||
child: table.shiftTable(snapshot.data, context)), | ||
], | ||
), | ||
)); | ||
}, | ||
); | ||
} | ||
} | ||
|
||
Future getData() async { | ||
try { | ||
var userID = await store.getUserID(); | ||
var res = await api.getMyShiftCurrentDaySunny(userID.toString()); | ||
return res; | ||
} catch (err) { | ||
logger.e('don`t response. error message: $err'); | ||
} | ||
} |