Dan Cojocaru
3 years ago
9 changed files with 58 additions and 7 deletions
@ -0,0 +1,29 @@
|
||||
import 'package:flutter/widgets.dart'; |
||||
import 'package:info_tren/models/ui_design.dart'; |
||||
import 'package:info_tren/pages/station_arrdep_page/select_station/select_station_cupertino.dart'; |
||||
import 'package:info_tren/pages/station_arrdep_page/select_station/select_station_material.dart'; |
||||
import 'package:info_tren/utils/default_ui_design.dart'; |
||||
|
||||
class SelectStationPage extends StatefulWidget { |
||||
final UiDesign? uiDesign; |
||||
|
||||
const SelectStationPage({ Key? key, this.uiDesign }) : super(key: key); |
||||
|
||||
static String routeName = '/stationArrDep/selectStation'; |
||||
|
||||
@override |
||||
SelectStationPageState createState() { |
||||
final uiDesign = this.uiDesign ?? defaultUiDesign; |
||||
switch (uiDesign) { |
||||
case UiDesign.MATERIAL: |
||||
return SelectStationPageStateMaterial(); |
||||
case UiDesign.CUPERTINO: |
||||
return SelectStationPageStateCupertino(); |
||||
} |
||||
} |
||||
} |
||||
|
||||
abstract class SelectStationPageState extends State<SelectStationPage> { |
||||
final TextEditingController textEditingController = TextEditingController(); |
||||
|
||||
} |
@ -0,0 +1,9 @@
|
||||
import 'package:flutter/cupertino.dart'; |
||||
import 'package:info_tren/pages/station_arrdep_page/select_station/select_station.dart'; |
||||
|
||||
class SelectStationPageStateCupertino extends SelectStationPageState { |
||||
@override |
||||
Widget build(BuildContext context) { |
||||
return Container(); |
||||
} |
||||
} |
@ -0,0 +1,10 @@
|
||||
import 'package:flutter/material.dart'; |
||||
import 'package:flutter/src/widgets/framework.dart'; |
||||
import 'package:info_tren/pages/station_arrdep_page/select_station/select_station.dart'; |
||||
|
||||
class SelectStationPageStateMaterial extends SelectStationPageState { |
||||
@override |
||||
Widget build(BuildContext context) { |
||||
return Container(); |
||||
} |
||||
} |
Loading…
Reference in new issue