This commit is contained in:
Mohamed Nouffer
2022-07-20 20:55:54 +05:30
parent 5283b5052e
commit 25410a7ebd
8 changed files with 85 additions and 23 deletions

View File

@ -1,10 +1,12 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:rogapp/pages/search/search_controller.dart';
class SearchPage extends StatelessWidget {
const SearchPage({Key? key}) : super(key: key);
SearchPage({Key? key}) : super(key: key);
SearchController searchController = Get.find<SearchController>();
@override
Widget build(BuildContext context) {
@ -20,6 +22,14 @@ class SearchPage extends StatelessWidget {
title: const CupertinoSearchTextField(),
),
body: Obx(() =>
ListView.builder(
itemCount: searchController.searchResults.length,
itemBuilder: (context, index){
return Text("hello");
},
),
)
);
}
}