Initial commit: Penyerahan final Source code Tugas Akhir
This commit is contained in:
12
lib/providers/tab_provider.dart
Normal file
12
lib/providers/tab_provider.dart
Normal file
@ -0,0 +1,12 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class TabProvider with ChangeNotifier {
|
||||
int _currentIndex = 0;
|
||||
|
||||
int get currentIndex => _currentIndex;
|
||||
|
||||
set currentIndex(int index) {
|
||||
_currentIndex = index;
|
||||
notifyListeners();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user