import 'package:flutter/services.dart'; import 'package:gecko/globals.dart'; import 'package:flutter/material.dart'; import 'package:gecko/models/search.dart'; import 'package:provider/provider.dart'; class SearchResultScreen extends StatelessWidget { const SearchResultScreen({Key key}) : super(key: key); @override Widget build(BuildContext context) { SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]); SearchProvider _searchProvider = Provider.of(context); int nbrResult = 0; return Scaffold( appBar: AppBar( toolbarHeight: 60 * ratio, title: const SizedBox( height: 22, child: Text('Résultats de votre recherche'), ), ), body: SafeArea( child: Padding( padding: const EdgeInsets.symmetric(horizontal: 20), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ const SizedBox(height: 30), Text( '$nbrResult résultats pour "${_searchProvider.searchController.text}"', style: TextStyle(fontSize: 18, color: Colors.grey[700]), ), const SizedBox(height: 40), const Text( 'Dans la blockchain Ğ1', style: TextStyle(fontSize: 20), ) ]), ), ), ); } }