mirrored_repositories/flutter_finance_app/lib

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_finance_app_ui/screen/card_screen.dart';
import 'package:flutter_finance_app_ui/home_page_sceen.dart';

class CurrentScreenIndex extends StatelessWidget {
  final int index;

  CurrentScreenIndex(
    this.index,
  );

  @override
  Widget build(BuildContext context) {
    switch (index) {
      case 1:
        {
          return CardScreen();
        }
        break;
      case 2:
        {
          return HomePageScreen();
        }
        break;
      case 3:
        {
          return CardScreen();
        }
        break;
      default:
        {
          return HomePageScreen();
        }
        break;
    }
  }
}
