ontimehaulers/lib/screens/quote_screen.dart

27 lines
788 B
Dart
Raw Permalink Normal View History

2024-11-05 12:29:06 +00:00
import 'package:flutter/material.dart';
import 'package:ontime_haulers/widgets/custom_navigation_bar.dart';
import 'package:webview_flutter/webview_flutter.dart';
class QuoteScreen extends StatelessWidget {
final int selectedIndex;
final void Function(int) onItemTapped;
final controller = WebViewController()
..setJavaScriptMode(JavaScriptMode.unrestricted)
..loadFlutterAsset('assets/quotation.html');
QuoteScreen({
super.key,
required this.selectedIndex,
required this.onItemTapped,
});
@override
Widget build(BuildContext context) {
return Scaffold(
body: WebViewWidget(controller: controller),
bottomNavigationBar: CustomNavigationBar(
selectedIndex: selectedIndex,
onItemTapped: onItemTapped,
),
);
}
}