27 lines
788 B
Dart
27 lines
788 B
Dart
|
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,
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|