Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
hardikroongta8 committed Aug 19, 2024
1 parent f860ec8 commit 67faf17
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/pages/ip/ip_carousel.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:carousel_slider/carousel_slider.dart';
import 'package:carousel_slider/carousel_slider.dart' as carousel_slider;
import 'package:fluentui_system_icons/fluentui_system_icons.dart';
import 'package:flutter/material.dart';
import 'package:onestop_dev/functions/ip/ip_calculator.dart';
Expand Down Expand Up @@ -34,7 +34,7 @@ class RouterPage extends StatefulWidget {
class _RouterPageState extends State<RouterPage> {
int page = 1;
Widget seven = const Column();
CarouselController buttonCarouselController = CarouselController();
final buttonCarouselController = carousel_slider.CarouselController();
TextEditingController roomController = TextEditingController();
TextEditingController blockController = TextEditingController();
TextEditingController floorController = TextEditingController();
Expand Down Expand Up @@ -127,7 +127,7 @@ class _RouterPageState extends State<RouterPage> {
//crossAxisAlignment: CrossAxisAlignment.start,
//mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
CarouselSlider(
carousel_slider.CarouselSlider(
items: [1, 2, 3, 4, 5, 6, 7, 8].map((i) {
return Builder(
builder: (BuildContext context) {
Expand Down Expand Up @@ -275,7 +275,7 @@ class _RouterPageState extends State<RouterPage> {
);
}).toList(),
carouselController: buttonCarouselController,
options: CarouselOptions(
options: carousel_slider.CarouselOptions(
onPageChanged: (index, reason) {
setState(() {
page = index + 1; //<-- Page index
Expand Down

0 comments on commit 67faf17

Please sign in to comment.