File tree Expand file tree Collapse file tree 4 files changed +20
-18
lines changed
Expand file tree Collapse file tree 4 files changed +20
-18
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,10 @@ namespace TodoSQLite.Models;
55public class TodoItem
66{
77 [ JsonProperty ( "id" ) ]
8- public string ID { get ; set ; } = null ! ;
9-
10- [ JsonProperty ( "list_id" ) ] public string ListId { get ; set ; } = null ! ;
8+ public string ID { get ; set ; } = "" ;
9+
10+ [ JsonProperty ( "list_id" ) ]
11+ public string ListId { get ; set ; } = null ! ;
1112
1213 [ JsonProperty ( "created_at" ) ]
1314 public string CreatedAt { get ; set ; } = null ! ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ namespace TodoSQLite.Models;
55public class TodoList
66{
77 [ JsonProperty ( "id" ) ]
8- public string ID { get ; set ; } = null ! ;
8+ public string ID { get ; set ; } = "" ;
99
1010 [ JsonProperty ( "created_at" ) ]
1111 public string CreatedAt { get ; set ; } = null ! ;
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<manifest xmlns : android =" http://schemas.android.com/apk/res/android" >
3- <application android : allowBackup =" true" android : icon =" @mipmap/appicon" android : roundIcon =" @mipmap/appicon_round" android : supportsRtl =" true" ></application >
3+ <application android : usesCleartextTraffic = " true " android : allowBackup =" true" android : icon =" @mipmap/appicon" android : roundIcon =" @mipmap/appicon_round" android : supportsRtl =" true" ></application >
44 <uses-permission android : name =" android.permission.ACCESS_NETWORK_STATE" />
55 <uses-permission android : name =" android.permission.INTERNET" />
66</manifest >
Original file line number Diff line number Diff line change 2222 <CollectionView .ItemTemplate>
2323 <DataTemplate >
2424 <Grid Padding =" 10" >
25- <Frame BorderColor =" Gray"
26- Padding =" 10"
27- CornerRadius =" 5" >
28- <Grid ColumnDefinitions =" *,Auto" >
29- <Label Text =" {Binding Name}"
30- FontSize =" 16"
31- VerticalOptions =" Center" />
32- <Button Grid.Column=" 1"
33- Text =" Delete"
34- Clicked =" OnDeleteClicked"
35- CommandParameter =" {Binding .}" />
36- </Grid >
37- </Frame >
25+ <Grid Padding =" 10"
26+ BackgroundColor =" White"
27+ ColumnDefinitions =" *,Auto" >
28+ <Grid .Shadow>
29+ <Shadow Brush =" Gray" Offset =" 1,1" Radius =" 3" Opacity =" 0.3" />
30+ </Grid .Shadow>
31+ <Label Text =" {Binding Name}"
32+ FontSize =" 16"
33+ VerticalOptions =" Center" />
34+ <Button Grid.Column=" 1"
35+ Text =" Delete"
36+ Clicked =" OnDeleteClicked"
37+ CommandParameter =" {Binding .}" />
38+ </Grid >
3839 </Grid >
3940 </DataTemplate >
4041 </CollectionView .ItemTemplate>
You can’t perform that action at this time.
0 commit comments