From 5d0532ce8525ae5d52995669a8d7f240a86d8974 Mon Sep 17 00:00:00 2001 From: Goel Biju <16869075+GoelBiju@users.noreply.github.com> Date: Thu, 29 Dec 2022 08:13:41 +0000 Subject: [PATCH] Add search app bar (#23) --- .../lib/screens/search_screen.dart | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/mjssa_digital_library/lib/screens/search_screen.dart b/mjssa_digital_library/lib/screens/search_screen.dart index 0e3f9f3..e253086 100644 --- a/mjssa_digital_library/lib/screens/search_screen.dart +++ b/mjssa_digital_library/lib/screens/search_screen.dart @@ -1,15 +1,22 @@ import 'package:flutter/material.dart'; -class SearchScreen extends StatelessWidget { +class SearchScreen extends StatefulWidget { const SearchScreen({super.key}); + @override + State createState() => _SearchScreenState(); +} + +class _SearchScreenState extends State { + @override Widget build(BuildContext context) { - return const Center( - child: Text( - 'Search', - style: TextStyle( - fontSize: 30, fontWeight: FontWeight.bold, color: Colors.white), - )); + return Scaffold( + appBar: AppBar( + title: const Text( + 'Search' + ), + ), + ); } }