diff --git a/lib/controllers/group_controller.dart b/lib/controllers/group_controller.dart new file mode 100644 index 00000000..b13fdaca --- /dev/null +++ b/lib/controllers/group_controller.dart @@ -0,0 +1,11 @@ +import 'package:get/get.dart'; + +import '../widgets/searched_group.dart'; + + +class GroupController extends GetxController{ + + SearchedGroup searchedGroup = SearchedGroup(); + + +} \ No newline at end of file diff --git a/lib/screens/group_screen.dart b/lib/screens/group_screen.dart index 465fb362..e5ea4007 100644 --- a/lib/screens/group_screen.dart +++ b/lib/screens/group_screen.dart @@ -1,13 +1,30 @@ -import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; + +import 'search_group_screen.dart'; class GroupScreen extends StatelessWidget { const GroupScreen({super.key}); @override Widget build(BuildContext context) { - return const Column( + return Row( + mainAxisAlignment: MainAxisAlignment.center, children: [ - Text('그룹'), + Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + ElevatedButton( + onPressed: () { + Navigator.push( + context, + MaterialPageRoute( + builder: (context) => const SearchGroupScreen(),), + ); + }, + child: const Text('그룹검색'), + ), + ], + ), ], ); } diff --git a/lib/screens/search_group_screen.dart b/lib/screens/search_group_screen.dart new file mode 100644 index 00000000..edc175e2 --- /dev/null +++ b/lib/screens/search_group_screen.dart @@ -0,0 +1,54 @@ +import 'package:flutter/material.dart'; + +import '../widgets/searched_group.dart'; + +class SearchGroupScreen extends StatelessWidget { + const SearchGroupScreen({super.key}); + + @override + Widget build(BuildContext context) { + SearchedGroup searchedGroup = SearchedGroup(); + + return Scaffold( + appBar: AppBar( + title: Row( + children: [ + const SizedBox(width: 8), + const Flexible( + flex: 1, + child: TextField( + decoration: InputDecoration( + contentPadding: EdgeInsets.symmetric( + vertical: 7, + horizontal: 16, + ), + ), + ), + ), + IconButton( + onPressed: () {}, + icon: const Icon( + Icons.search, + color: Colors.black, + ), + ), + ], + ), + ), + body: Column( + children: [ + Expanded( + child: ListView( + padding: const EdgeInsets.all(10), + children: [ + searchedGroup.searchedGroup('홍익대학교'), + searchedGroup.searchedGroup('홍익대학교 세종캠'), + searchedGroup.searchedGroup('홍익대학교 부속고등학교'), + ], + ), + ), + ], + ), + ); + } +} diff --git a/lib/service/ios_walking_service.dart b/lib/service/ios_walking_service.dart index e5700b5d..8ec77039 100644 --- a/lib/service/ios_walking_service.dart +++ b/lib/service/ios_walking_service.dart @@ -44,4 +44,5 @@ class IosWalkingService implements WalkingService { return dailySteps; } + } diff --git a/lib/utils/walking_service.dart b/lib/utils/walking_service.dart index 69a355b3..ccc95887 100644 --- a/lib/utils/walking_service.dart +++ b/lib/utils/walking_service.dart @@ -1,4 +1,5 @@ abstract class WalkingService { + Future getCurrentStep(); Future> getDailyStepsInInterval( diff --git a/lib/widgets/searched_group.dart b/lib/widgets/searched_group.dart new file mode 100644 index 00000000..196d1da1 --- /dev/null +++ b/lib/widgets/searched_group.dart @@ -0,0 +1,15 @@ +import 'package:flutter/material.dart'; + + +class SearchedGroup { + Widget searchedGroup(String groupName){ + return Container( + height: 50, + color: Colors.white70, + child: Center( + child: Text(groupName), + ), + ); + } +} +