You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.3 KiB
Dart
42 lines
1.3 KiB
Dart
import 'package:diplomaticquarterapp/pages/BookAppointment/components/SearchByClinic.dart';
|
|
import 'package:diplomaticquarterapp/pages/BookAppointment/components/SearchByDoctor.dart';
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class Search extends StatefulWidget {
|
|
@override
|
|
_SearchState createState() => _SearchState();
|
|
}
|
|
|
|
class _SearchState extends State<Search> with SingleTickerProviderStateMixin {
|
|
TabController _tabController;
|
|
|
|
@override
|
|
void initState() {
|
|
_tabController = new TabController(length: 2, vsync: this);
|
|
super.initState();
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
bottom: TabBar(
|
|
tabs: [
|
|
Tab(text: TranslationBase.of(context).clinicName),
|
|
Tab(
|
|
text: TranslationBase.of(context).doctorName,
|
|
)
|
|
],
|
|
controller: _tabController,
|
|
),
|
|
title: Text(TranslationBase.of(context).bookAppo,
|
|
style: TextStyle(color: Colors.white)),
|
|
),
|
|
body: TabBarView(
|
|
physics: NeverScrollableScrollPhysics(),
|
|
children: [SearchByClinic(), SearchByDoctor()],
|
|
controller: _tabController));
|
|
}
|
|
}
|