update
This commit is contained in:
@ -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");
|
||||
},
|
||||
),
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user