1
+ import 'package:digit_ui_components/blocs/AppLocalization.dart' ;
2
+ import 'package:digit_ui_components/blocs/component_localization_delegate.dart' ;
1
3
import 'package:digit_ui_components/digit_components.dart' ;
2
4
import 'package:digit_ui_components/utils/validators/validator.dart' ;
3
5
import 'package:digit_ui_components/widgets/atoms/digit_stepper.dart' ;
4
6
import 'package:digit_ui_components/widgets/atoms/dropdown_wrapper.dart' ;
5
7
import 'package:digit_ui_components/widgets/atoms/info_buttons.dart' ;
6
8
import 'package:digit_ui_components/widgets/atoms/input_wrapper.dart' ;
7
9
import 'package:digit_ui_components/widgets/atoms/timeline.dart' ;
10
+ import 'package:digit_ui_components/widgets/atoms/upload_image.dart' ;
8
11
import 'package:digit_ui_components/widgets/atoms/upload_popUp.dart' ;
9
12
import 'package:digit_ui_components/widgets/molecules/digit_card.dart' ;
10
13
import 'package:flutter/material.dart' ;
@@ -89,6 +92,8 @@ void main() {
89
92
class MyApp extends StatelessWidget {
90
93
const MyApp ({super .key});
91
94
95
+ //Future<dynamic> localizedStrings;
96
+
92
97
/// This widget is the root of the application.
93
98
@override
94
99
Widget build (BuildContext context) {
@@ -99,10 +104,20 @@ class MyApp extends StatelessWidget {
99
104
backgroundColor: DigitTheme .instance.colorScheme.secondary,
100
105
)),
101
106
home: const MyHomePage (title: 'Digit Components Page' ),
107
+ localizationsDelegates: [
108
+ ComponentLocalization .getDelegate ( getLocalizationString () , []),
109
+ ],
102
110
);
103
111
}
104
112
}
105
113
114
+ //Function to read the localizations from ISAR,
115
+ getLocalizationString () async {
116
+ List <dynamic > localizationValues = [];
117
+
118
+ return localizationValues;
119
+ }
120
+
106
121
class MyHomePage extends StatefulWidget {
107
122
final String title;
108
123
@@ -163,6 +178,14 @@ class MyHomePageState extends State<MyHomePage> {
163
178
mainAxisSize: MainAxisSize .min,
164
179
crossAxisAlignment: CrossAxisAlignment .start,
165
180
children: [
181
+ ImageUploader (
182
+ onImagesSelected: (List <File > imageFile) {
183
+ // Handle the selected image file here
184
+ // print('Image selected: ${imageFile.path}');
185
+ },
186
+ allowMultiples: true ,
187
+ ),
188
+ SizedBox (height: 14 ,),
166
189
InputField (
167
190
type: InputType .text,
168
191
label: "Text Field" ,
0 commit comments